(just a small and simple bot I've created for myself)
- Clone this repository to your local machine
- Use this guide to obtain api_id and api_hash.
- Message
@BotFather
to create a new bot and get its token. Also you can use@userinfobot
to get your telegram id (admin id). - Edit
config-example.ini
file and rename it toconfig.ini
- You should disable privacy mode for groups for your bot using @BotFather (to allow your bot work in Telegram groups).
- [Optional] use venv to avoid conflicts because of packages versions. Install requirements from
requirements.txt
file (for Windows itpy -m pip install -r requirements.txt
). - Run the
main.py
file, send a/commands
command to your bot from your (admin) account to set up the commands menu.
To allow transcribing voice messages in some chats, you should add the id of this chat to the allowed list using /allow
command.
The bot will message you when it's added to some group so you can easily get its id.
To remove chat from allowed - use /disallow
command.