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?
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744693616a4588359.html
评论列表(0条)