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.5.tar.gz (19.4 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.5-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tgbotbase-1.1.5.tar.gz
  • Upload date:
  • Size: 19.4 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.5.tar.gz
Algorithm Hash digest
SHA256 c4cd9f53d55b1fe552cea9e2852ea3e3031135e3e752a4c414100046dadf0b08
MD5 a27a15369bb0ca6903753b6323453105
BLAKE2b-256 77dc6126252951ce6281cfce6144e2ccfcae85f6deb75d05bfe19f786c9172f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgbotbase-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 22.1 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 413d6fe3d8ef9bb2f0417e5698b48552609ff2c2cb609a2eacd37bfd3002ab80
MD5 1acc69a8b82c1b29848fee5a735ec031
BLAKE2b-256 248018da4aadfceedef944da93b57a0ae6259f8ec40af6822a21ac4b1d150257

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