Skip to content

A Telegram bot to send messages to all the users on the bot.

Notifications You must be signed in to change notification settings

DevHanza/Telegram-Broadcast-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Broadcast Bot 📢

A Telegram bot to send broadcast messages to all the users on the bot.

(Only for Educational Purposes)

🔧 Features

  • ✅ Ease of use.
  • ✅ Including text, images and markdown are supported.
  • ✅ Show/Hide Forwarded tag.
  • ✅ Unlimited Users.
  • ✅ User Database with SQLite3.
  • ✅ NO PAID PLANS.
  • ✅ No Developer side limits.
  • ✅ Beginner friendly code.
  • ✅ Extensible with any pytelegramBotAPI bot.

👥 Usage

How to register users?

  • Upon receiving this /start from the users, their information will be automatically added to a SQLite database.
  • Users user_id, first_name, username will be collected.
  • Fork the repo and modify the code, if you want more features.

Send Broadcast messages

  • Simply send a reply to your broadcast message as /broadcast. Replied message will sent to to all the users in the bot (from the database).

♻ How to Deploy

Requirements

Setup local variables

  • Get your BOT_API_KEY from here.
  • Replace your api key with TOKEN variable in bot.py.
  • Example: TOKEN = "09876543210:AAHePL8-xSzjOlnF5dRGiwhNyxxZsS3u7f4"
  • Get your UserID from here.
  • Replace your user id with adminUserID variable in bot.py.
  • Example: adminUserID = 1234567890"
  • Save!

Install & Run

git clone https://github.com/hansanaD/Telegram-Broadcast-Bot.git;
cd Telegram-Broadcast-Bot;
pip install -r requirements.txt;
python bot.py

‼ Disclaimer

This repository is intended for educational and personal use only. The use of this repository for any commercial or illegal purposes is strictly prohibited. Spamming or misuse of the broadcast feature is strictly prohibited. Users are expected to adhere to Telegram's terms of service. The repository owner is not responsible for any misuse of the software or any legal consequences that may arise from such misuse

About

A Telegram bot to send messages to all the users on the bot.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages