mirror of
https://github.com/civsocit/olgram.git
synced 2025-05-24 18:03:25 +00:00
Compare commits
2 Commits
6acc2068de
...
bb1456dda1
Author | SHA1 | Date | |
---|---|---|---|
|
bb1456dda1 | ||
|
756f0bd89a |
|
@ -31,5 +31,5 @@ REDIS_PATH=redis://redis
|
||||||
# Set log level, can be CRITICAL, ERROR, WARNING, INFO, DEBUG. By default it set to WARNING.
|
# Set log level, can be CRITICAL, ERROR, WARNING, INFO, DEBUG. By default it set to WARNING.
|
||||||
LOGLEVEL=
|
LOGLEVEL=
|
||||||
|
|
||||||
# Uncomment this to switch bot language to Chinese
|
# Uncomment this to switch bot language to English
|
||||||
# O_LANG=zh
|
# O_LANG=en
|
||||||
|
|
|
@ -105,7 +105,7 @@ class ServerSettings(AbstractSettings):
|
||||||
return int(timedelta(days=1).total_seconds() * 1000.0)
|
return int(timedelta(days=1).total_seconds() * 1000.0)
|
||||||
|
|
||||||
|
|
||||||
logging.basicConfig(level=os.environ.get("LOGLEVEL", "WARNING"),
|
logging.basicConfig(level=os.environ.get("LOGLEVEL") or "WARNING",
|
||||||
format='%(asctime)s %(levelname)-8s %(message)s')
|
format='%(asctime)s %(levelname)-8s %(message)s')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -319,7 +319,8 @@ class CustomRequestHandler(WebhookRequestHandler):
|
||||||
types.ContentType.PHOTO,
|
types.ContentType.PHOTO,
|
||||||
types.ContentType.STICKER,
|
types.ContentType.STICKER,
|
||||||
types.ContentType.VIDEO,
|
types.ContentType.VIDEO,
|
||||||
types.ContentType.VOICE]
|
types.ContentType.VOICE,
|
||||||
|
types.ContentType.LOCATION]
|
||||||
dp.register_message_handler(message_handler, content_types=supported_messages)
|
dp.register_message_handler(message_handler, content_types=supported_messages)
|
||||||
dp.register_edited_message_handler(edited_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