Fix error, switch default storage from Redis to Memory, and add logging to multibot example

This commit is contained in:
latan 2023-08-10 15:54:10 +03:00
parent 31baa12d90
commit 3b2ead5322
3 changed files with 12 additions and 5 deletions

View file

@ -3,6 +3,7 @@ This example shows how to use webhook with SSL certificate.
"""
import logging
import ssl
import sys
from os import getenv
from aiohttp import web
@ -75,6 +76,7 @@ async def on_startup(bot: Bot) -> None:
await bot.set_webhook(
f"{BASE_WEBHOOK_URL}{WEBHOOK_PATH}",
certificate=FSInputFile(WEBHOOK_SSL_CERT),
secret_token=WEBHOOK_SECRET,
)
@ -116,5 +118,5 @@ def main() -> None:
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO)
logging.basicConfig(level=logging.INFO, stream=sys.stdout)
main()