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.7.tar.gz
(24.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
tgbotbase-1.1.7-py3-none-any.whl
(28.9 kB
view details)
File details
Details for the file tgbotbase-1.1.7.tar.gz.
File metadata
- Download URL: tgbotbase-1.1.7.tar.gz
- Upload date:
- Size: 24.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 |
8a66bcf7e682a27507d1215248a3741c3120cf7d7f3b98c65d3d9b76c91dccf1
|
|
| MD5 |
4da55dcbd86b1fb8fa0dc978030613d0
|
|
| BLAKE2b-256 |
c12129c8eb825513122bf402e3a87bb358c5daf8217cc6a28a37eb721639c926
|
File details
Details for the file tgbotbase-1.1.7-py3-none-any.whl.
File metadata
- Download URL: tgbotbase-1.1.7-py3-none-any.whl
- Upload date:
- Size: 28.9 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 |
10ee6b4a15ce5f15850e0ea707d4c7dda8eb2860b4402746246a6a0ed2556f11
|
|
| MD5 |
fd92aa244b3aea94d7f2089b38296a39
|
|
| BLAKE2b-256 |
d5773075145c250d1b26a18e8d52c8db69d52b6fbc8285994a58cfc89484f392
|