Telegram Auto Caption Bot With Custom Text & Better Structure
(Works in channels - public or private)
- Auto caption for all media files in channels
- Customizable caption text with markdown support
- Flexible caption positioning (Top/Bottom/Replace)
- Clean and organized code structure
- Updated to latest Pyrofork
- Environment variable support
- Easy deployment options
BOT_TOKEN- Your Bot Token from @BotFatherAPI_ID- Your API ID from my.telegram.orgAPI_HASH- Your API Hash from my.telegram.orgCAPTION_TEXT- Your Custom Caption Text [Supports Markdown]CAPTION_POSITION- Caption Position:top,bottom, ornil(replace)ADMIN_USERNAME- Your Username (without @)
-
Clone Repository
git clone https://github.com/avipatilpro/Caption-Bot cd Caption-Bot -
Install Requirements
pip install -r requirements.txt
-
Set Environment Variables
cp .env.example .env # Edit .env with your values -
Run Bot
python main.py
# Clone repository
git clone https://github.com/avipatilpro/Caption-Bot
cd Caption-Bot
# Set environment variables in .env file
cp .env.example .env
# Edit .env with your values
# Run with Docker Compose
docker-compose up -d/start - Start the bot
/help - Get help information
/about - About the bot
- Create a bot via @BotFather
- Get API credentials from my.telegram.org
- Add bot as admin in your channel with edit permissions
- Deploy using any method above
- Set your custom caption and position