-
Notifications
You must be signed in to change notification settings - Fork 6k
Labels
ℹ️ good-first-issueinformation: good-first-issueinformation: good-first-issue
Description
What kind of feature are you missing? Where do you notice a shortcoming of PTB?
i would like to be able to await coroutines before of shutting down the bot after application.run_polling().
it could be done implementing a post_shutdown method in addition to the already existing post_init method
Describe the solution you'd like
It is especially useful for closing a db connection in aiosqlite ( await db.close() )
Describe alternatives you've considered
No response
Additional context
No response
Poolitzer and harshil21
Metadata
Metadata
Assignees
Labels
ℹ️ good-first-issueinformation: good-first-issueinformation: good-first-issue