0

Our Telegram bot [TOKEN_OMITTED] never 'hooks' with our server.

This URL https://api.telegram.org/bot[TOKEN_OMITTED]/getWebhookInfo gives this response with 'Connection timeout' error:

{"ok":true,"result":{"url":"https://[DOMAIN_OMITTED].com/PHP/telWH2.php","has_custom_certificate":true,"pending_update_count":0,"last_error_date":1624178810,**"last_error_message":"Connection
timed out"**,"max_connections":40,"ip_address":"123.456.789.000"}}

However this command (copied from https://core.telegram.org/bots/webhooks#testing-your-bot-with-updates) works pretty well (so there seems not to be such 'Connection timeout' problem):

curl --tlsv1.2 -v -k -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache"  -d '{ "update_id":10000, "message":{"date":1441645532,"chat":{"last_name":"Test Lastname","id":1111111,"first_name":"Test","username":"Test"},"message_id":1365,"from":{"last_name":"Test Lastname","id":1111111,"first_name":"Test","username":"Test"}, "text":"/start"}}' "https://[DOMAIN_OMITTED]/PHP/telWH2.php"

But as I said, the webhook never works. Any hints? Thank you!

Norbert
  • 1
  • 1
  • The same question, unsolved yet, here: https://stackoverflow.com/questions/44215160/telegram-server-cant-update-my-bot-webhook And here the same [unsolved] thing: https://stackoverflow.com/questions/50050692/connection-time-out-on-telegram-bot – Norbert Jun 20 '21 at 17:01

0 Answers0