Skip to content

Simple telegram bot that allows you to send messages to a list of channels that bot is an administrator of

Notifications You must be signed in to change notification settings

yazdanbhd/Forwarder-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Telegram Bot for Broadcasting Messages to Multiple Channels

Table of contents

General info

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.

Features

  • 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.

Requirements

  • Python 3.x
  • python-telegram-bot version 13.5

Installation

  1. Clone this repository to your local machine.
  2. Install the required libraries using pip:
$ pip install python-telegram-bot==13.15
  1. Get a bot token from BotFather on Telegram.
  2. Replace YOUR_BOT_TOKEN in the code with your bot token.
  3. Run the bot using:
$ python bot.py

Contributions

Feel free to contribute to this project by creating pull requests.

About

Simple telegram bot that allows you to send messages to a list of channels that bot is an administrator of

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages