This makes a user send all messages from one/many chat(s) to another chat(s).
- First:
APP_ID
andAPI_HASH
- Get it from my.telegram.orgSESSION
- A telethon session string, get it from hereFROM_CHANNEL
- Channel ID(s) split by space or just one channel IDTO_CHANNEL
- Channel ID(s) split by space or just one channel IDBLOCKED_TEXTS
- To block any specific text in message. ( If that text is found inside the text, then that message will not get forward)MEDIA_FORWARD_RESPONSE
- To manage media forward. ( To allow media forward - yes or no)REPLACE_DICT
- To replace text in messages. (word:replacement) seperated by comma
- Deployment:
- Clone the repo:
git clone https://github.com/dhruvknsr/Telegram-AutoForwardBot
- Make a
.env
file in the root of the repo, like .env.sample and fill in the values. - Use
python3 bot.py
to start the bot.
All new messages will be auto-posted!! Join the channel from you want the posts to be taken. Join as admin in the channel where you want the posts to be sent to.
Ayush7445 for the original script [telegram-forwarder_auto]