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.4.tar.gz (18.3 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.4-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tgbotbase-1.1.4.tar.gz
  • Upload date:
  • Size: 18.3 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.4.tar.gz
Algorithm Hash digest
SHA256 7eb96678b1aff3cd7ae37f06f1b8aec1d5a16f6c68304a870a336fba3af53b44
MD5 f21ecf638e75d566311b64e8581dd716
BLAKE2b-256 516409e8f33512d2f2c39c29954e2d9c45068b26c4c046f131ff7314e69def95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgbotbase-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 20.8 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b0d919613572f87a3de1af82f8542043adae538977b1f9b39e36770d248b36fc
MD5 d473a5e1d892d71caa0c3ae9c239a48f
BLAKE2b-256 6e7aa0d68992757fd35160fee8aca1038feb3b00c93b14a7e9da5c82614c0a9c

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