-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How disable old webHook? #458
Labels
Comments
I need to manually run process.on('exit', () => TelegramBot.deleteWebHook()); |
When you setup a webhook, Telegram stores your URL. In order to disable the webhook you must call Calling that on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First I ran the first bot. He worked. Then I changed the token and launched the second bot.
The second bot works fine. But the problem is that the server constantly accepts POST requests for the first bot and returns 401. How can I fix this? How to disable incoming messages from the telegram server from the first bot?
I disable dino. And get this 501 error:
How stop webhook?
The text was updated successfully, but these errors were encountered: