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

@ -66,7 +66,7 @@ async def echo_handler(message: types.Message) -> None:
async def on_startup(bot: Bot) -> None:
# If you have a self-signed SSL certificate, then you will need to send a public
# certificate to Telegram
await bot.set_webhook(f"{BASE_WEBHOOK_URL}{WEBHOOK_PATH}")
await bot.set_webhook(f"{BASE_WEBHOOK_URL}{WEBHOOK_PATH}", secret_token=WEBHOOK_SECRET)
def main() -> None: