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

I’ve already set up my Telegram bot webhook in a WordPress site. When I check it using getWebhookInfo,

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

相关推荐

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

    I’ve already set up my Telegram bot webhook in a WordPress site. When I check it using getWebhookInfo,

    1天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信