Good to know that I’m not alone in this world suffering with odd bugs! XD
I just test with this texts.
" Habia una vez" Fail
" habia una vez" Ok
“Habia una vez” Ok
“a Habia una vez” Fail
“%20habia una vez” Ok (Wait, what!?)
“a%20Habia una vez” Ok (Got it!)
Maybe, just maybe, the blank space before the H is encoded in other invisble character other that 0x20. One forbiden by Telegram.
It is not “a Telegram API issue”, it is “a HTTP URL issue”.
A HTTP URL cannot include spaces, they have to be encoded as %20 or + depending on the context.
When it appears to work without doing that, likely the part of the message after the first space is not sent in the message.
Remember over the HTTP protocol the request is sent as:
GET http://hostname.domain/urlparameters HTTP/1.1
Note the 3 parts of the request separated by spaces. When there are spaces inside the URL, it is indeterminate what the parser
in the server would do. Normally it will just reject the whole thing, apparently at Telegram they have some hack to check for
the " H" to see where the “HTTP/1.1” thing starts, but that really isn’t the right thing to do.