小编Kry*_*ich的帖子

电报Bot收到"错误请求:消息文本为空"

当我的Telegram bot将sendMessage发送到Telegram服务器时,它会收到错误消息:

{"ok":false,"error_code":400,"description":"Bad Request: message text is empty"}
Run Code Online (Sandbox Code Playgroud)

今天早上出现问题,在此之前我的机器人工作了整整一年没有错误.GetUpdates命令与以前一样运行良好.我使用GET HTTP方法发送逗号:

https://api.telegram.org/bot<MyToken>/sendMessage
Run Code Online (Sandbox Code Playgroud)

附带UTF-8编码数据:

{"chat_id":123456789,"text":"any text"}
Run Code Online (Sandbox Code Playgroud)

有没有遇到过这个?

telegram-bot

13
推荐指数
2
解决办法
4095
查看次数

标签 统计

telegram-bot ×1