A Telegram userbot that transforms any message into aggressive tabloid-style headlines using Google's Gemini AI. Perfect for adding dramatic flair to mundane conversations!
- 🎯 Reply-based processing: Reply to any message with
/toporor\topor - ⚡ Aggressive headlines: Converts boring text into sensational tabloid-style headlines
- 🤖 AI-powered: Uses Google Gemini 1.5 Flash for content generation
- 📱 Userbot: Runs on your own Telegram account
- 🔥 Customizable prompts: Easy to modify the generation style
Input message:
The website is experiencing some lag issues
ToporBot output:
⚡️SERVERS ARE FUCKED⚡️SYSADMINS SCREWED UP⚡️WEBSITE IS TOTALLY BROKEN⚡️
- Python 3.8+
- uv package manager
- Telegram account
- Google AI API key
-
Clone the repository:
git clone <your-repo-url> cd toporbot
-
Install dependencies using uv:
uv sync
-
Get your Telegram API credentials:
- Visit my.telegram.org
- Create a new application
- Note down your
API_IDandAPI_HASH
-
Get your Google AI API key:
- Visit Google AI Studio
- Create a new API key
- Note down your
GEMINI_API_KEY
-
Create a
.envfile:API_ID=your_telegram_api_id API_HASH=your_telegram_api_hash GEMINI_API_KEY=your_gemini_api_key
-
Start the bot:
uv run python main.py
-
In Telegram:
- Reply to any message with
/toporor\topor - The bot will generate aggressive tabloid-style headlines
- Use
/startto see available commands
- Reply to any message with
/toporor\topor- Reply to a message to generate tabloid headlines/start- Show help and available commands
toporbot/
├── main.py # Main bot code
├── pyproject.toml # Project dependencies
├── uv.lock # Dependency lock file
├── .env # Environment variables (create this)
├── .gitignore # Git ignore rules
└── README.md # This file
The bot uses environment variables for configuration:
| Variable | Description | Required |
|---|---|---|
API_ID |
Telegram API ID from my.telegram.org | Yes |
API_HASH |
Telegram API Hash from my.telegram.org | Yes |
GEMINI_API_KEY |
Google AI API key from ai.google.dev | Yes |
You can modify the TOPOR_PROMPT variable in main.py to change the generation style, add different languages, or adjust the aggressiveness level.
pyrogram- Telegram client librarygoogle-generativeai- Google Gemini AI clientpython-dotenv- Environment variable management
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is provided as-is for educational purposes. Please respect Telegram's Terms of Service and use responsibly.
Bot doesn't respond:
- Check if all environment variables are set correctly
- Ensure your Telegram session is active
- Verify API keys are valid
Authentication errors:
- Delete the
.sessionfiles and restart the bot - Double-check your API_ID and API_HASH
Gemini API errors:
- Verify your GEMINI_API_KEY is correct
- Check if you have available quota on Google AI
If you encounter issues, please check:
- All environment variables are correctly set
- You have internet connection
- Your API keys are valid and have sufficient quota
Made with 🔥 and aggressive headlines