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.0.5.tar.gz
(17.9 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
tgbotbase-1.0.5-py3-none-any.whl
(20.1 kB
view details)
File details
Details for the file tgbotbase-1.0.5.tar.gz.
File metadata
- Download URL: tgbotbase-1.0.5.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
757949161555b7a8b1490474f67117577aa7370c690d49f2dd9b61f6da90c182
|
|
| MD5 |
3228b2c6800b0d9b602f8e1edd9573a6
|
|
| BLAKE2b-256 |
a0292d5680110a740d7de8042f2d48c6093a85e4d64cb76b786fd8ba398299af
|
File details
Details for the file tgbotbase-1.0.5-py3-none-any.whl.
File metadata
- Download URL: tgbotbase-1.0.5-py3-none-any.whl
- Upload date:
- Size: 20.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 |
065b79696cddd15f5f693d4e811e929f38c78bf4edcfe57d3c91d79d4170a594
|
|
| MD5 |
9b63a7fc0aa60a3ab6420855457bb2fb
|
|
| BLAKE2b-256 |
11ed9ea693f04f4998203c82cb0c128b7dfcec34ae15544e8051d61860928f14
|