Giter VIP home page Giter VIP logo

multi-channel-forward-bot's Introduction

Multi Channel Forward Bot

A Simple Bot which forwards Messages /media to multiple channels.

Help

  • Bot need to be an admin of the channel with 'post message' privilege.
  • 5 channels can be added to the bot for forwarding. Channel1 is mandatory while the others are optionals.
  • select the required channel to set a default channel by the command /channel1 to /channel5 .
  • Reply to the telegram media with /send command to forward.
  • Give /view command to view the present default channel selected for forwarding.

Bot Commands

/start - Start Message
/help - Help Message

/send - Send the replied message to the default channel(As a reply to any telegram message)
/view - View the deault channel
/channel1 - Set channel 1 as default forwaring channel (Optional)
/channel2 - Set channel 2 as default forwaring channel (Optional)
/channel3 - Set channel 3 as default forwaring channel (Optional)
/channel4 - Set channel 4 as default forwaring channel (Optional)
/channel5 - Set channel 5 as default forwaring channel (Optional)

Environment Variables

TG_BOT_TOKEN - Your Bot Token (Obtain from @botfather)
APP_ID - Your APP ID (Obtain from my.telegram.org)
API_HASH - Your API Hash (Obtain from my.telegram.org)

CHANNEL1_ID - Id of your chnnel (Use any channel Id bots to find it and don't forget to Put a prefix "-100" to the value)
CHANNEL2_ID - Id of your chnnel (Optional)
CHANNEL3_ID - Id of your chnnel (Optional)
CHANNEL4_ID - Id of your chnnel (Optional)
CHANNEL5_ID - Id of your chnnel (Optional)

CHANNEL1_NAME - Name of your channel
CHANNEL2_NAME - Name of your channel (Optional)
CHANNEL3_NAME - Name of your channel (Optional)
CHANNEL4_NAME - Name of your channel (Optional)
CHANNEL5_NAME - Name of your channel (Optional)

Deploying on Heroku (Easy Way):

Deploy

On Linux PCs or VPS (Legendary Way):

  • Create a config.py file with the environment variables.
  • Finally, run the following
virtualenv -p python3 venv
. ./venv/bin/activate
pip3 install -r requirements.txt
python3 bot.py

Developed By:

Mallu Boy as Renjith on Tg

Courtesy:

Adithyan for his Channel Forward Bot

Dan for his Pyrogram Library

multi-channel-forward-bot's People

Contributors

m4mallu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.