为什么电报在设置 webhook 后不发送更新?

Why doesn't telegram send the updates after setting the webhook?

我可以使用 Telegram getUpdates API 获取更新,而在使用有效的 SSL 证书或自签名证书设置 webhook 后,它显示:

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

但它不会向我的 webhook link 发送任何更新(我检查了 Nginx 和 node.js 访问日志文件),我尝试了很多 setWebhook API 的 curl 命令有和没有证书,但仍然没有结果:

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

可能是您的证书有问题。你能在任何 SSL 在线检查器中检查你的证书吗?可以吗?

例如在这一个https://www.sslshopper.com/ssl-checker.html

如果直接调用 webhook url,您是否也看到 access.log 中的请求?