diff --git a/examples/webhook.py b/examples/webhook.py index baa9a26d..b1494225 100644 --- a/examples/webhook.py +++ b/examples/webhook.py @@ -44,7 +44,7 @@ async def on_startup(bot: Bot, webhook_url: str): @router.shutdown() -async def on_shutdown(bot: Bot, dispatcher: Dispatcher): +async def on_shutdown(bot: Bot): logging.warning("Shutting down..") # Insert code here to run it before shutdown