admin管理员组文章数量:1391981
I’ve already set up my Telegram bot webhook in a WordPress site. When I check it using getWebhookInfo, I get this response:
{"ok":true,"result":{"url":".php","has_custom_certificate":false,"pending_update_count":0,"max_connections":40,"ip_address":"address"}}
The webhook works perfectly on my local WordPress environment, but when I test it on the live server, I don’t receive any updates or responses from Telegram.
I’m fetching data from Telegram like this:
$update = json_decode(file_get_contents('php://input'), true);
Also, my webhook file is in the same directory as the wp-content folder.
A few things I’ve already checked:
- allow_url_fopen is ON
- I have a valid SSL certificate
- The webhook URL is set correctly
Despite this, I’m still not getting any updates from Telegram on the live server. What could be causing this issue?
本文标签: phpTelegram bot doesn39t trigger the webhookStack Overflow
版权声明:本文标题:php - Telegram bot doesn't trigger the webhook - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744693616a2620145.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论