There is a bot, posted on timeweb, on the hosting itself a free Let's Encrypt certificate has been received. Setwebhook ends in success:

Webhook was set

although I guess that this message does not guarantee a successful webhook installation.

If you check for updates via getUpdates (before Setwebhook, of course), then all updates come normally. But after installing the webhook, in response to the Telegram silence.

getWebhookInfo says that

"url":"https://тут мой url.index.php",
"has_custom_certificate":false,
"pending_update_count":17,
"last_error_date":1511886170,
"last_error_message":"Wrong response from the webhook: 404 Not Found",
"max_connections":40.

The certificate is verified to https://www.ssllabs.com/ssltest/analyze.html with success.

  • edit the question, all in a heap - Anatol
  • Good day. Have you solved this problem? - Sergey Filimonov
  • No, while I use getUpdates - Milyausha Batrgareeva
  • Same problem. Have you decided yours? - Marina Golubeva
  • Yes, it was not necessary to set the full path to the handler file in setcookie, that is, index.php, but simply the address to which the processing takes place (site_name.ru) - Milyausha Batrgareeva

0