0

我有一个可以完美响应我的电报机器人,但它不响应其他用户,并且正如我在getWebhookinfo其中看到的那样返回错误Wrong response from the webhook: 500 Internal Server Error。我仔细检查了代码中的所有内容,一切正常并且工作正常。

此外pending_update_count,其他用户发送给机器人的每条消息都会增加。

当然,我的帐户没有问题:|
有关更多信息,我将 Codeigniter MVC 用于我的机器人。

4

1 回答 1

0

您可以尝试 POST 到您自己的服务器来测试和调试自己。

尝试这个

curl -v \
-X POST \
-H "Content-Type: application/json" \
-d '{"update_id": 754000000, "message": {"message_id": 157367, "from": {"id": 109780439, "first_name": "Sean", }, "chat": {"id": 109780439, "first_name": "Sean", }, "text": "Hello World"}}' \
https://localhost/telegram/hook.php

我想你会看到错误信息。

于 2017-04-09T02:00:54.370 回答