mirror of
https://github.com/civsocit/olgram.git
synced 2025-05-29 02:23:24 +00:00
Compare commits
No commits in common. "bb1456dda1e6da83b48f568592bf48d196b8d87e" and "6acc2068dec10b2ed2ef2e636af7846d172d323c" have entirely different histories.
bb1456dda1
...
6acc2068de
|
@ -31,5 +31,5 @@ REDIS_PATH=redis://redis
|
|||
# Set log level, can be CRITICAL, ERROR, WARNING, INFO, DEBUG. By default it set to WARNING.
|
||||
LOGLEVEL=
|
||||
|
||||
# Uncomment this to switch bot language to English
|
||||
# O_LANG=en
|
||||
# Uncomment this to switch bot language to Chinese
|
||||
# O_LANG=zh
|
||||
|
|
|
@ -105,7 +105,7 @@ class ServerSettings(AbstractSettings):
|
|||
return int(timedelta(days=1).total_seconds() * 1000.0)
|
||||
|
||||
|
||||
logging.basicConfig(level=os.environ.get("LOGLEVEL") or "WARNING",
|
||||
logging.basicConfig(level=os.environ.get("LOGLEVEL", "WARNING"),
|
||||
format='%(asctime)s %(levelname)-8s %(message)s')
|
||||
|
||||
|
||||
|
|
|
@ -319,8 +319,7 @@ class CustomRequestHandler(WebhookRequestHandler):
|
|||
types.ContentType.PHOTO,
|
||||
types.ContentType.STICKER,
|
||||
types.ContentType.VIDEO,
|
||||
types.ContentType.VOICE,
|
||||
types.ContentType.LOCATION]
|
||||
types.ContentType.VOICE]
|
||||
dp.register_message_handler(message_handler, content_types=supported_messages)
|
||||
dp.register_edited_message_handler(edited_message_handler, content_types=supported_messages)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user