【发布时间】:2021-02-18 16:51:55
【问题描述】:
我在 Heroku 上部署了我的电报机器人。 Bot 过去可以正常工作,但在某些时候它只是在接收命令时停止发送消息。这是getWebHookInfo的答案:
{"ok":true,"result":{"url":"https://telegram-rainbow-bot.herokuapp.com:443/api/message/update","has_custom_certificate":false," pending_update_count":1,"last_error_date":1613676609,"last_error_message":"来自 webhook 的错误响应:404 Not Found","max_connections":40,"ip_address":"54.171.62.111"}}
我不知道发生了什么。 Bot 像往常一样工作,突然间发生了这种情况。 Bot 使用端口 443 进行 https 请求。有时日志也会显示“无法确定重定向的 https 端口”。
【问题讨论】:
标签: c# heroku telegram-bot