A template based on Tishka17' repo, expanded for easy use of decorators via a generated wrapper around dispatcher
This is trivial bot example. Each part can be replaced keeping the overall structure the same
-
Edit code in a correspoing way
-
Update
pip
andsetuptools
packages
pip install -U setuptools pip
- Install bot
pip install .
For development install it via command
pip install -e .[test,lint]
-
Create and fill
bot.ini
file (example) -
Start bot to check
tgbot
- Edit systemd service file and copy it to a proper location
if you wanna play with the code generation tool, u can run it w/ python3 -m tgbot.wrappers.main