Skip to content

This is a Python-based Telegram bot that listens for messages sent in Topic #1 of Group A and forwards them to Topic #2 in Group B.

Notifications You must be signed in to change notification settings

VJ2151/telegram_topic_forwarder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Telegram Topic Forwarder Bot

This bot listens to messages sent in Topic 1 of Group A and forwards them to Topic 2 in Group B.

Setup Instructions

  1. Install the required library:

    pip install python-telegram-bot
    
  2. How to set up the bot and obtain a Telegram bot token : Create a new bot using the BotFather on Telegram. after creating the bot,the botfather will provide token, Save the token provided by BotFather.

  3. Retrieve Group and Topic IDs : Open telegram and create Group A and create Topic1 inside it. Now click on topic1(settings), You can see the topic link in info section. for example: t.me/c/2260671564/2 (the number after last slash is your TopicID & number after second last slash is Group ID) NOTE : GROUP ID'S ARE ALWAYS NEGATIVE,and starts with 100, SO PUT (-100) BEFORE ANY GROUP ID

About

This is a Python-based Telegram bot that listens for messages sent in Topic #1 of Group A and forwards them to Topic #2 in Group B.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages