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