R
R
Roman Olegovich2015-08-21 10:20:13
Messengers
Roman Olegovich, 2015-08-21 10:20:13

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

4 answer(s)
A
Alexey Burlakov, 2018-10-25
@redflasher

Go through the browser to
https://api.telegram.org/bot <bot_token>/getWebhookInfo
and you will see an error message there.

V
Vitaly Arkhipov, 2015-08-21
@arvitaly

Most likely you have a problem with https. Telegram requires such URLs for webhook.

K
Konstantin, 2015-09-20
@happy_yar

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.

N
Ninazu, 2016-04-14
@Ninazu

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 question

Ask a Question

731 491 924 answers to any question