mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 09:55:21 +00:00
Auto close bot HTTP-connections.
This commit is contained in:
parent
f185f69e8d
commit
8433c4cc4a
1 changed files with 2 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ async def _shutdown(dispatcher: Dispatcher, callback=None):
|
|||
await dispatcher.storage.close()
|
||||
await dispatcher.storage.wait_closed()
|
||||
|
||||
await dispatcher.bot.close()
|
||||
|
||||
|
||||
async def _wh_shutdown(app):
|
||||
callback = app.get('_shutdown_callback', None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue