My Telegram API message body looks like this:
text=<code>(1.00) H %0A</code>&parse_mode=HTML
i.e. I am trying to send this string:
(1.00) H %0A
i.e.
(1.00) H
with a new line.
I am using the code tags so I can use monospaced font.
Through trial and error I’ve learned the H
causes the message to be rejected with 400 Bad Request
(but no further error details in the response).
If I remove the H
:
(1.00) %0A
it works successfully.
How do I avoid getting any rejections due to things like this/what am I doing wrong?