Universal telegram bot base for bots maded by @abuztrade on aiogram 3.x
Project description
tgbotbase - Universal telegram bot base for bots maded by @abuztrade on aiogram 3.x
Default settings:
os.environ["LOG_FILENAME"] = "./logs/bot_{time:DD-MM-YYYY}.log"
os.environ["LOG_FORMAT"] = "<white>{time:HH:mm:ss}</white> | <level>{level: <8}</level> | <cyan>{line}</cyan> - <level>{message}</level>"
os.environ["LOG_ROTATION"] = "2days"
os.environ["LOG_COMPRESSION"] = "zip"
os.environ["LOG_BACKTRACE_BOOL"] = "True"
os.environ["LOG_DIAGNOSE_BOOL"] = "True"
os.environ["LOCALES_FOLDER"] = "locales"
os.environ["LOCALES_STARTSWITH"] = "bot"
os.environ["KEYBOARDS_PATH"] = "./src/keyboards.yml"
Also should fill SHARED_OBJECTS["dp"] with your root aiogram 3.x dispatcher for keyboord.book works
SHARED_OBJECTS["dp"] = dp
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tgbotbase-1.1.14.tar.gz
(27.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tgbotbase-1.1.14.tar.gz.
File metadata
- Download URL: tgbotbase-1.1.14.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38d3a9327766c3791a56bb9553040df7f8e0faa2eb217ab8f5719133b9dacb7f
|
|
| MD5 |
23b789054a765c773a15aea64184a9c5
|
|
| BLAKE2b-256 |
b0fbae4c915878e7e6ae6b28aa4abd9d06c31b031c708ab15b4f775f8d396e76
|
File details
Details for the file tgbotbase-1.1.14-py3-none-any.whl.
File metadata
- Download URL: tgbotbase-1.1.14-py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14f57358e2c5c87c907a7500979069d377026f16ee31d810211ee284eb1f3c52
|
|
| MD5 |
351b53e2f2b9308fd98243e0e56cd7c9
|
|
| BLAKE2b-256 |
8aa274a96dfb2b7917daf231477f255566dd132c0502b00447f7059fd15acbae
|