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.11.tar.gz
(27.6 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.11.tar.gz.
File metadata
- Download URL: tgbotbase-1.1.11.tar.gz
- Upload date:
- Size: 27.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf8d668fdeb4fae681dba451fd554ca007c17f0691974f7e2d0cb0727ca18893
|
|
| MD5 |
846e3fdfcb4f8f2a3605ada84b701bea
|
|
| BLAKE2b-256 |
cb518c3307e1d34e0a58d94d11dbad4ee6fe4fb0426e5e744a83773ad360c1a6
|
File details
Details for the file tgbotbase-1.1.11-py3-none-any.whl.
File metadata
- Download URL: tgbotbase-1.1.11-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 |
493a08b0d767e3c7c0f7668d681c9f3a8e1d41382f09905647cc62d29c2eb66e
|
|
| MD5 |
e6ee7f0361e21364118d14cab12cd5fe
|
|
| BLAKE2b-256 |
09a29600a41f9247dcbe85206e40b7cb306ba394488ae769c5fe3b7498347961
|