Why telegram does not send the updates after setting webhook?

限于喜欢 提交于 2019-12-10 11:14:18

问题


I can get the updates with Telegram getUpdates API, while after setting webhook with a valid SSL certificate or self-signed certificate it says:

{"ok":true,"result":true,"description":"Webhook was set"}

But it does not send any updates to my webhook link (I checked the Nginx and node.js access log files), I tried a lot of curl commands for setWebhook API with and without certificate, but still no result:

curl -s -X POST https://api.telegram.org/bot<TOKEN>/setWebhook -d url='https://www.example.tech/<TOKEN>/webhook' jq .

curl -F "url=https://www.example.tech/<TOKEN>/webhook" -F "certificate=@./www_example_tech.crt" https://api.telegram.org/bot<TOKEN>/setWebhook

回答1:


Maybe problem in your certificate. Could you check your certificate in any SSL online checker? Is it ok?

For example in this one https://www.sslshopper.com/ssl-checker.html

Also do you see the request in access.log if call webhook url directly?



来源:https://stackoverflow.com/questions/36561246/why-telegram-does-not-send-the-updates-after-setting-webhook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!