最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Telegram bot doesn't trigger the webhook - Stack Overflow

programmeradmin2浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论