当我的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 ×1