-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
📋 help-wantedwork status: help-wantedwork status: help-wanted
Description
In v13, we had a simple code snippet we could use to restart the bot (https://github.com/python-telegram-bot/v13.x-wiki/wiki/Code-snippets#simple-way-of-restarting-the-bot), which restarted the whole script passing in any arguments. However simply adapting that to v20 this doesn't work since:
- threading and asyncio don't play well together
- the application methods (
stop,shutdown,app.updater.shutdown) all need to be awaited instead of simply called - something more I didn't see at first glance
If anyone has figured out a simple way to restart the whole script (e.g. by sending a command to a bot), feel free to propose your solution below!
oinatzml
Metadata
Metadata
Assignees
Labels
📋 help-wantedwork status: help-wantedwork status: help-wanted