This is a template for my telegram bots. Also I provide small bot as example.
-
Clone repo and install all dependencies first
git clone https://github.com/boomb0om/aiogram-bot-template cd aiogram-bot-template pip install -r requirements.txt
-
Configure
config.py
file. -
Now you can run your bot
Run bot on main instancepython bot.py
Run bot on test instancepython bot.py --test
Those instances are configured in
config.py
file by placing your api keys inapi_key
andtest_api_key
variables