【发布时间】:2020-12-15 10:56:33
【问题描述】:
response=requests.post("https://api.telegram.org/<botToken>/sendmessage?chat_id=12345&parse_mode=HTML&text={}".format(" >"))
print(response.text)
> 的消息不会在移动设备上发送,response.text 会打印出来:
{"ok":false,"error_code":400,"description":"Bad Request: message must be non-empty"}
我已经关注了telegram官方apihttps://core.telegram.org/bots/api#html-style-
All <, > and & symbols that are not a part of a tag or an HTML entity must be replaced with the corresponding HTML entities (< with <, > with > and & with &).
【问题讨论】: