mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-09-11 13:00:40 +03:00
add app close
This commit is contained in:
parent
fff8042242
commit
1c67c28ca3
@ -25,3 +25,11 @@ killall python
|
||||
## Help article
|
||||
|
||||
[Пишем асинхронного Телеграм-бота](https://habr.com/ru/company/kts/blog/598575/)
|
||||
|
||||
[fast_api_aiogram](https://programtalk.com/vs4/python/daya0576/he-weather-bot/telegram_bot/dependencies.py/)
|
||||
|
||||
## TODO
|
||||
|
||||
- [ ] Добавить очередь сообщений
|
||||
- [ ] Исправить запуск локально
|
||||
- [ ] Добавить тестов
|
||||
|
@ -32,6 +32,7 @@ async def bot_shutdown() -> None:
|
||||
# Close DB connection (if used)
|
||||
await dispatcher.storage.close()
|
||||
await dispatcher.storage.wait_closed()
|
||||
app.close()
|
||||
|
||||
logger.warning('Bye!')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user