A Telegram bot that tracks and retrieves deleted messages.
/snipe- Shows the last deleted message in the group (admin only)/godsnipe- Shows all deleted messages (owner only)- Tracks messages deleted within the last 24 hours
- Includes timestamps and usernames
- Advanced error handling
- Owner-only commands
- Create a new bot using @BotFather on Telegram
- Get your bot token
- Replace
'YOUR_BOT_TOKEN'inbot.pywith your actual bot token - Install requirements:
pip install -r requirements.txt
- Run the bot:
python bot.py
- Upload both
bot.pyandrequirements.txtto your PythonAnywhere account - Install the requirements using pip
- Set up a new Web App or use the Always-on task feature
- Start the bot using
python bot.py
- Only group admins can use
/snipe - Only the owner (chat ID: 7187126565) can use
/godsnipe - Message tracking with timestamps
- Error handling and logging