Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/v1a0/aiogram-bot-template

Template repo with prepared structure for aiogram projects
https://github.com/v1a0/aiogram-bot-template

Last synced: 29 days ago
JSON representation

Template repo with prepared structure for aiogram projects

Awesome Lists containing this project

README

        

# Template structure

```shell
aiogram-bot-template
| .gitattributes
| .gitignore
| autorun.py # infinite loop run bot.py (restart if bot fail)
| bot.py # main file, dp.executor.start_polling, from handlers import *
| branches.py # State's init as branches
| LICENSE # just license
| messages.py # Dict with text messages MSG['hello']
| misc.py # Bot init, Dispatcher init
| settings.py # API_TOKEN, ADMIN_ID, BAN_LIST, DB_PATH, logger settings
|
\---handlers # dp.handlers
| start.py # template handler for /start and /indo
| text_message.py # template handlers for TEXT-messages
```