Resuming the bot after server/script restart #1941
Unanswered
doniyorbekm
asked this question in
Q&A
Replies: 2 comments 5 replies
-
Hello. Can you provide more details? What are you getting when you try to use getWebhookInfo method(when bot does not work)? How are you restarting script, etc? |
Beta Was this translation helpful? Give feedback.
3 replies
-
I'd recommend you to use built-in run_webhooks() method |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone. I came across a problem when I made my bot and deployed it on a VPS server. Once I restart the script, my bot stops responding. I see that the webhook is set and Flask accepts requests, but my bot does not process any updates, thus acting like the script has not been run and I have to send the /start command every time. Here is my sample bot (before I moved it to Flask):
So, my question is: how I modify this script so that my bot continues (resumes) working without having to send the /start command when my script is restarted?
Beta Was this translation helpful? Give feedback.
All reactions