Skip to content

A Powerful And Efficient Telegram Bot Designed To Forward Videos And Documents From Multiple Source Channels To Multiple Target Channels Without The "Forwarded From" Tag.

License

Notifications You must be signed in to change notification settings

NBBotz/Auto-Forward-Bot

Repository files navigation

SilentXForward Bot

A Powerful And Efficient Telegram Bot Designed To Forward Videos And Documents From Multiple Source Channels To Multiple Target Channels Without The "Forwarded From" Tag.

Join Telegram - SilentXBotz

Features

  • Multi-Source & Multi-Target: Supports Forwarding From Multiple Source Channels To Multiple Destination Channels.
  • Content Filtering: Strictly Forwards Only Videos And Documents. Ignores Text, Photos, Stickers, and GIFs.
  • Tag Removal: Forwards Messages Without The "Forwarded From" Tag.
  • Instant Delivery: Optimized Queue Processing For Near-Instant Forwarding.
  • Flood Wait Handling: Automatically Handles Telegram's Flood Wait Limits.
  • Keep-Alive: Built-In Web Server To Keep The Bot Running On Platform Like Heroku/Koyeb.

Configuration

The Bot Is Configured Using .

Variable Description Required Default
API_ID Your Telegram API ID From my.telegram.org Yes -
API_HASH Your Telegram API Hash From my.telegram.org Yes -
BOT_TOKEN Your Bot Token From @BotFather Yes -
SOURCE_CHANNELS Comma-Separated List Of Source Channel IDs (e.g., -100123, -100456) Yes -
TARGET_CHANNELS Comma-separated List Of Target Channel IDs (e.g., -100789, -100321) Yes -
WEB_SERVER Set To True To Enable The Keep-Alive Web Server. Optional True
PORT Port For The Web Server. Optional 8080
TG_WORKERS Number Of Pyrogram workers. Optional 4
APP_URL URL Of Your Deployed App (Used For Self-Pinning To Keep Awake). Yes None

Deployment

Deploy on Heroku

Deploy

  1. Click The Button Above.
  2. Fill In The Required Environment Variables.
  3. Click Deploy app.
  4. Turn On The worker Dyno (And web Dyno If Using WEB_SERVER).

Deploy on Koyeb/Render (Using Docker)

  1. Fork This Repository.
  2. Create A New Service On Koyeb/Render.
  3. Select "Docker" As The Deployment Method.
  4. Set The Environment Variables.
  5. Deploy.

Local Deployment

  1. Clone the repository:

    git clone https://github.com/NBBotz/Auto-Forward-Bot.git
    cd SilentXForward
  2. Install dependencies:

    pip install -r requirements.txt
  3. Set environment variables: You can create a .env file or export them in your terminal.

    export API_ID=your_api_id
    export API_HASH=your_api_hash
    export BOT_TOKEN=your_bot_token
    export SOURCE_CHANNELS="-10012345678, -10087654321"
    export TARGET_CHANNELS="-10011223344, -10055667788"
  4. Run the bot:

    python bot.py

Credits

About

A Powerful And Efficient Telegram Bot Designed To Forward Videos And Documents From Multiple Source Channels To Multiple Target Channels Without The "Forwarded From" Tag.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published