Skip to content

avipatilpro/Caption-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ–Š๏ธ TG AutoCaption Bot

Telegram Auto Caption Bot With Custom Text & Better Structure

(Works in channels - public or private)


โœจ Features

  • 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

๐Ÿ“‹ Config Variables

  • BOT_TOKEN - Your Bot Token from @BotFather
  • API_ID - Your API ID from my.telegram.org
  • API_HASH - Your API Hash from my.telegram.org
  • CAPTION_TEXT - Your Custom Caption Text [Supports Markdown]
  • CAPTION_POSITION - Caption Position: top, bottom, or nil (replace)
  • ADMIN_USERNAME - Your Username (without @)

๐Ÿš€ Deploy

Heroku Deploy

Deploy

Manual Deploy

  1. Clone Repository

    git clone https://github.com/avipatilpro/Caption-Bot
    cd Caption-Bot
  2. Install Requirements

    pip install -r requirements.txt
  3. Set Environment Variables

    cp .env.example .env
    # Edit .env with your values
  4. Run Bot

    python main.py

Docker Deploy

# 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

๐Ÿค– Commands

/start - Start the bot
/help  - Get help information
/about - About the bot

๐Ÿ”ง Setup Instructions

  1. Create a bot via @BotFather
  2. Get API credentials from my.telegram.org
  3. Add bot as admin in your channel with edit permissions
  4. Deploy using any method above
  5. Set your custom caption and position

ยฉ Avishkar Patil

About

Caption Bot For Telegram In Channels Auto add Custom Text Below any File as Caption ๐Ÿ–‹

Topics

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •