Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 1.35 KB

README.md

File metadata and controls

37 lines (31 loc) · 1.35 KB

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