电报 REST API parse_mode=html

Telegram REST API parse_mode=html

我有以下 CURL 请求

 curl -s -X POST https://api.telegram.org/botxxxxx/sendMessage -d chat_id=-xxxx -d text="Remember guys,%0A%0A\<b\>THERE IS NO GLOBAL ROM, NO PLAYSTORE, NO GOOGLE PAY, NO ROOT, NO BOOTLOADER UNLOCK\!\</b\>,%0A%0AI will let you know when that changes, for more information on your watch, and how to remove chinese apps please visit http://miwatch.cf" -d "parse_mode='html'"

我正在尝试发送 html 以便我可以使用换行符和粗体文本,但我收到

{"ok":false,"error_code":400,"description":"Bad Request: unsupported parse_mode"

我也试过HTML/Markdown/MARKDOWN/markdown,每次都是同样的反应...

HTML parse_mode 不应该被引用:

-d "parse_mode='html'" ----> -d parse_mode=HTML.

我在 text 周围使用了单引号,这样我的终端 won't try to expand the 'special chars';

curl -s -X POST https://api.telegram.org/bot<mytoken>/sendMessage -d chat_id=1234567 -d text='Remember guys, <b>THERE IS NO GLOBAL ROM, NO PLAYSTORE, NO GOOGLE PAY, NO ROOT, NO BOOTLOADER UNLOCK!</b>, will let you know when that changes, for more information on your watch, and how to remove chinese apps please visit http://miwatch.cf' -d parse_mode=HTML