A telegram bot, which can forward messages from channel, group or chat to another channel, group or chat automatically.
To configure this bot add the environment variables stated below. Or add them in config.env.template and change the name to config.env
.
API_ID
- Get it by creating an app on https://my.telegram.orgAPI_HASH
- Get it by creating an app on https://my.telegram.orgBOT_TOKEN
- Get it by creating a bot on https://t.me/BotFatherFROM_CHATS
- Chat ID of the chats from where to forward messages. Separated by space.TO_CHATS
- Chat ID of the chats where to forward messages. Separated 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.SUDO_USERS
- (Optional) Chat identifier of the sudo user. For multiple users use;
as separator.ADVANCE_CONFIG
- (Optional) If you want forward message from chat A to chat B and from chat C to chat D add this value in the format given below.
CHAT_ID_A CHAT_ID_B; CHAT_ID_C CHAT_ID_D
Or if you want to forward message from chat A to chat B, C and D. And from Chat E to Chat F
CHAT_ID_A CHAT_ID_B CHAT_ID_C CHAT_ID_D; CHAT_ID_E CHAT_ID_F
↑ ^---------------------^ ↑ ↑ to another chat
From channel To channel from another channel
REMOVE_STRINGS
- (Optional) Keywords to remove from message before forwarding. For multiple string use;
as a seperator. For example -
@username;https://t.me/username;Hey! My channel is XXxxXX
REPLACE_STRING
- (Optional) Keyword to add in the place ofREMOVE_STRING