Skip to main content

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


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.2.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tgbotbase-1.1.2-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file tgbotbase-1.1.2.tar.gz.

File metadata

  • Download URL: tgbotbase-1.1.2.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.11

File hashes

Hashes for tgbotbase-1.1.2.tar.gz
Algorithm Hash digest
SHA256 fd8bdb051bb78b9f535c4732698397f71a5fcf7e2274a3c8159c1a45c8a8390e
MD5 a13d0d96538bbb276d90ee8193de6f03
BLAKE2b-256 c8950ee9ed02048380230e4edaeb2a5cda7de69f1ab1e8be958c03638912f3a7

See more details on using hashes here.

File details

Details for the file tgbotbase-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: tgbotbase-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.11

File hashes

Hashes for tgbotbase-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c04e132601927bf599b8304fe06ac40786126f4f36ce47523ad3992a9b601722
MD5 31e7b378da668c594695b973a901dacc
BLAKE2b-256 064173e61ba10c6e64753be0424dbafe56129dbe4d88c884e5e1205e974d638f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page