This bot allows the user to send messages to multiple Telegram channels where the bot has administrative permissions. The channels are stored in the bot's context so that the user doesn't have to enter the list of channels every time they want to broadcast a message.
- Start the bot by sending the command
/start
. - Add a channel to the list of channels by sending the command
/add <channel_username>
. - Remove a channel from the list of channels by sending the command
/remove <channel_username>
. - Select a channel or send the message to all channels by using the inline keyboard.
- Python 3.x
python-telegram-bot
version13.5
- Clone this repository to your local machine.
- Install the required libraries using pip:
$ pip install python-telegram-bot==13.15
- Get a bot token from BotFather on Telegram.
- Replace
YOUR_BOT_TOKEN
in the code with your bot token. - Run the bot using:
$ python bot.py
Feel free to contribute to this project by creating pull requests.