Skip to content

MarsBatya/tgbot_template_with_decorators

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tgbot_template_with_decorators

A template based on Tishka17' repo, expanded for easy use of decorators via a generated wrapper around dispatcher

Minimal telegram bot example

This is trivial bot example. Each part can be replaced keeping the overall structure the same

How to start

  1. Edit code in a correspoing way

  2. Update pip and setuptools packages

pip install -U setuptools pip 
  1. Install bot
pip install .

For development install it via command

pip install -e .[test,lint]
  1. Create and fill bot.ini file (example)

  2. Start bot to check

tgbot
  1. 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

About

A template based on Tishka17' repo, but expanded for easy use of decorators via a generated wrapper around dispatcher

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%