Trivial telegram bot for counting everything.
Project structure: src layout
Create simple json file with your bot token:
{"TOKEN": "bot123:abc"}
Then run with path to your config: python3 -m counter_bot '/path/to/cfg.json'
Create json file:
{
"TOKEN": "bot:123abc",
"WEBHOOK_URL": "https://<your_server_domain>/bot<token>",
"WEBHOOK_PUB_CERT": "/path/to/pub.crt"
}
To run bot on your server run gunicorn counter_bot:create_app('/path/to/config.json')
!!When bot started, you need to open in your browser https://<your_server_domain>/reset_webhooks
TODO:
- Dockerfile
- Tests for different deploy types
- MVP
- webhooks
- Async
- unittest
- pytest
- tox
- setuptools
- poetry
- Manual deployment
- GitHub Actions
- Simple server
- Serverless
- Prod
- Testing
- README
- docs external / internal
- logging
- pyflake
- black