mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix error, switch default storage from Redis to Memory, and add logging to multibot example
This commit is contained in:
parent
31baa12d90
commit
3b2ead5322
3 changed files with 12 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue