A powerful Telegram bot for creating and publishing posts to multiple channels.
- Multi-channel post publishing
- Rich text with Markdown/HTML support
- Media support (photos, videos, documents)
- Interactive buttons with URLs
- Post editing and management
- Preview before publishing
- Python 3.8+
- MongoDB (cloud or local)
- Telegram Bot Token from @BotFather
git clone https://github.com/KunalG932/PostBot.git
cd PostBot
pip install -r requirements.txt
python main.pyCreate .env file:
BOT_TOKEN=your_bot_token
MONGO_URI=your_mongodb_uri
- Fork this repo to your GitHub
- Sign up at Koyeb.com
- Connect your GitHub repository
- Set environment variables:
BOT_TOKEN- from @BotFatherMONGO_URI- MongoDB connection stringADMIN_IDS- your Telegram user ID (optional)
- Deploy!
Free MongoDB: Use MongoDB Atlas M0 cluster.
- Start bot:
/start - Connect channel:
/connect @yourchannel - Create posts with text, media, and buttons
- Preview and publish
All settings in .env file (see .env.example).
Required:
BOT_TOKEN- Telegram bot tokenMONGO_URI- MongoDB connection
Optional: Limits, logging, features, etc. (see config.py)
- Developer: @DevIncognito
- Channel: @incognitobots
- Issues: GitHub
MIT License - see LICENSE
Made by @KunalG932