Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 1.38 KB

README.md

File metadata and controls

24 lines (20 loc) · 1.38 KB

Telegram Message Forwarder Bot

A telegram bot, which can forward messages from channel, group or chat to another channel, group or chat automatically.

Deploy to Heroku

Deploy

Configuration

To configure this bot add the environment variables stated below.

  • API_ID - Get it by creating an app on https://my.telegram.org
  • API_HASH - Get it by creating an app on https://my.telegram.org
  • BOT_TOKEN - Get it by creating a bot on https://t.me/BotFather
  • FROM_CHATS - Chat ID of the chats from where to forward messages. Seperated by space.
  • TO_CHATS - Chat ID of the chats where to forward messages. Seperated by space.
  • TELEGRAM_SESSION - (Optional) If you want to use this bot as user add the telegram session name in environment variables. Get it by running GenString and select the option 1 and follow the instructions.

Installing Requirements

Install the required Python Modules in your machine. Not required if using Heroku.

pip3 install -r requirements.txt

Copyright & License