This robot's purpose is to create a chat between an admin or several admins (which could stay anonymous if would like) and users.
The robot can function as a mail box so users from all over the world send messages to the bot and are received in one place, The users don't have the ability to see other user's messages, although the admin can. The robot was created using pyrogram + tgcrypto, ponyorm, apscheduler and plate.
git clone https://github.com/idokar/TGanonymusChatBot.git
cd TGanonymusChatBot
pip3 install -U -r requirements.txt
api_id
and api_hash
api_id
, api_hash
and the bot_token
to the config.ini
file (without using "" around the strings).
api_id = 12345
api_hash = 0123456789abcdef0123456789abcdef
bot_token = 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
session_name
and the creator
Telegram ID
session_name = My_bot
creator = 123456789
/start
- admins and users command. for admins its a permanent message and for users it is a editable using /set welcome
command./help
- admins and users command. for users it gives the ability to change language and get info about the bot. and for admins, it gives info about all the commands. /set welcome
- admins only command. allows to set a welcome message for the users./settings
- admins only command. allows to choose language, to remove the welcome message and to see the blocked and admins lists./block
and /unblock
- admins only command. to block and unlock users./set group
and /unset group
- admins only command. to limit the incoming messages from a curtain group only./promote
and /demote
- creator only command. to promote and demote users and admins.for more information use /help
(as admin) in the bot.