(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
@BotFatherto create a new bot and get its token. Also you can use@userinfobotto get your telegram id (admin id). - Edit
config-example.inifile 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.txtfile (for Windows itpy -m pip install -r requirements.txt). - Run the
main.pyfile, send a/commandscommand 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.