Skip to content

Telegram bot that saves a blocking reason when kicking a user from the group

Notifications You must be signed in to change notification settings

RobotTrick/TheReasonBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Reason Bot

Telegram bot that saves a blocking reason when kicking a user from the group

Every group admin occasionally encounters a user seeking to release his block from the group, but in the vast majority of cases, and especially in large groups with multiple admins, there is no way to remember the reason for the block. The following bot will solve this problem for you!

You can check our bot here (in Hebrew).

configuration:

  • Clone this reposetory:
git clone https://github.com/RobotTrick/TheReasonBot.git
  • Install requirements:
pip3 install -r requirements.txt
  • Edit and insert the folowing values into the config file:
[pyrogram]
api_id = XXXXXXXXXXX
api_hash = XXXXXXXXXXXXXXXXXXXXXXXXXX
bot_token = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

The api_id & api_hash You can get from my.telegram.org. bot_token you can get by create new bot on BotFather.

  • Edit bot strings:

You can change, if you like, the bot strings: start and help messages, buttons and more by editing the Msg.py file.

  • Run the bot:
python3 main.py

Created with ❤️ by David Lev & Yehuda By

About

Telegram bot that saves a blocking reason when kicking a user from the group

Topics

Resources

Stars

Watchers

Forks

Languages