V
V
Veronika Stepanovna2017-05-25 18:18:36
Bots
Veronika Stepanovna, 2017-05-25 18:18:36

Why is telegram bot not sending messages on hook?

There is a site, on a virtual hosting, with an ssl certificate. This morning everything worked and the bot regularly sent me messages from the telegram. Now it refuses to send. The current token is registered wherever necessary, and the address is available (for the test, I sent a post request via curl from a neighboring controller, it works, I also sent it from hurt.it and it also works). The webhook is set up correctly, and I've already changed the token several times, nothing. I refuse to understand what's going on. I really need help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2017-05-25
@sargss

After replacing the token, the webhook must be reinstalled. You don't forget to do it, do you?
And secondly, if for some reason the bot returned a code other than 200 (for example, 500 error), then Telegram stops sending requests to the bot by url and you need to fix the error in the code + re-register the webhook with a new token.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question