temp-mail-bot
Temp Mail Bot
A fast and secure Telegram bot written in Crystal that provides temporary email addresses. It automatically fetches emails and intelligently extracts verification codes and links, keeping your chat clean and efficient.
โจ Features
- ๐ฒ Instant Email Generation: Get a random temporary email address with a single command.
- ๐ง Smart Extraction: Automatically detects and extracts verification codes (OTP) and confirmation links.
- ๐งน Clean Interface: Strips unnecessary HTML, styles, and scripts from emails.
- ๐ High Performance: Built with Crystal for blazing fast speed and low resource usage.
- ๐ Auto-Polling: Checks for new emails in the background automatically.
๐ ๏ธ Tech Stack
- Language: Crystal ๐
- Framework: Tourmaline (Telegram Bot API)
- HTTP Client: Halite
๐ Getting Started
Prerequisites
- Crystal (latest version)
- A Telegram Bot Token (from @BotFather)
Installation
-
Clone the repository
git clone https://github.com/teenagelove/temp-mail-bot.git cd temp-mail-bot -
Install dependencies
shards install -
Set up environment variables Export your Telegram bot token:
export TELEGRAM_BOT_TOKEN="your_bot_token_here" -
Run the bot
crystal run src/temp_mail_bot.cr
๐ Usage
/start- Welcome message and instructions./new- Generate a new temporary email address.
The bot will automatically forward any incoming emails to your chat. If an email contains a verification code or link, the bot will highlight it for you!
๐งช Development
Run the test suite to ensure everything is working correctly:
crystal spec
๐ค Contributing
- Fork it (https://github.com/teenagelove/temp-mail-bot/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
๐ฅ Contributors
- Danil Kazakov - creator and maintainer
๐ License
Distributed under the MIT License. See LICENSE for more information.
Made with โค๏ธ and ๐ Crystal.
Repository
temp-mail-bot
Owner
Statistic
- 0
- 0
- 0
- 0
- 2
- about 7 hours ago
- November 21, 2025
License
MIT License
Links
Synced at
Sat, 22 Nov 2025 07:00:41 GMT
Languages