Answer the question
In order to leave comments, you need to log in
Problems with the Telegram bot - why doesn't Telegram send requests to the webhook address?
Created a new bot via BotFather.
Next, I use the following package https://github.com/akalongman/php-telegram-bot
Successfully set the webhook address I
send messages to the bot - there is no response to the webhook.
As far as I understand from the documentation and other sources, after assigning a webHook to a bot, it should send all messages to this address. Why doesn't this happen?
Answer the question
In order to leave comments, you need to log in
Go through the browser to
https://api.telegram.org/bot <bot_token>/getWebhookInfo
and you will see an error message there.
Most likely you have a problem with https. Telegram requires such URLs for webhook.
I so understand a problem because of the certificate. More precisely because of the lined up chain.
I bought Comodo PositiveSSL. And they sent me only two files: domen.crt, domen.ca-bundle. There are 4 of them in the instructions. Is it possible that this is the problem? since the webhook link in the browser also opens fine for me. WebHook is installed but nothing comes up.
Check your domain here
https://www.ssllabs.com/ssltest/
If it gives a rating below A, it may not take off without prior server settings.
I had two certificates, one from Comodo (B) and the second from LetsEncrypt (A), both were installed on the same server through the hosting admin panel. So, it only worked with LetsEncrypt for me
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question