A Telegram bot that monitors the IVASMS portal for new OTP messages and sends formatted alerts to your Telegram group.
- 🔄 Continuous monitoring of IVASMS portal
- 📱 Automatic OTP extraction from SMS messages
- 🎨 Beautiful formatted alerts for Telegram
- 🔐 Secure environment variable configuration
- 🚀 Ready for deployment on Render
-
Clone or download this repository
-
Install dependencies:
pip install -r requirements.txt
-
Configure environment variables:
- Copy
.env.exampleto.env - Edit
.envwith your actual values:BOT_TOKEN=your_telegram_bot_token CHAT_ID=your_telegram_chat_id IVASMS_EMAIL=avabuz@mailto.plus IVASMS_PASSWORD=avabuz@mailto.plus
- Copy
-
Run the bot:
python app.py
-
Push to GitHub:
- Create a new GitHub repository
- Push all files to your repository
-
Deploy on Render:
- Go to Render Dashboard
- Click "New" → "Web Service"
- Connect your GitHub repository
- Render will automatically detect the configuration
-
Set Environment Variables: In your Render service settings, add these environment variables:
BOT_TOKEN: Your Telegram bot tokenCHAT_ID: Your Telegram group/chat IDIVASMS_EMAIL: avabuz@mailto.plusIVASMS_PASSWORD: avabuz@mailto.plus
-
Deploy! Render will automatically build and deploy your bot.
- Message @BotFather on Telegram
- Send
/newbotcommand - Follow the instructions to create your bot
- Copy the bot token provided
- Add your bot to your Telegram group
- Send a message in the group
- Visit:
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates - Look for the
chatobject and copy theidvalue
The bot sends beautifully formatted OTP alerts:
✨ Facebook OTP ALERT ✨
🕐 Time: 2025-07-26 14:30:15
📱 Number: 2250768427143
⚙️ Service: Facebook
🔑 OTP Code: 97029
# 97029 is your Facebook confirmation code
I'm Glad to Help You 😊
The bot automatically detects OTPs from:
- Apple/iCloud
- Google/Gmail
- Telegram
- Microsoft
- Amazon
- Discord
If you see "BOT_TOKEN environment variable is required":
- For local development: Create a
.envfile with your credentials - For Render: Set environment variables in your service settings
The bot uses headless Chrome for web scraping. On Render, this is handled automatically by the Dockerfile.
If the bot can't log in to IVASMS:
- Verify your email and password are correct
- Check if IVASMS has changed their login page structure
For issues or questions, please check the troubleshooting section above or review the code comments for technical details.