When I send the data that I read from the mysql database to telegram the user, the user gets an underscore, etc. instead of a new line character. Therefore, I cannot format the message text correctly.
How can I format a telegram message that is a question with 4 or more possible answers?
What else will change that I do not expect? By the way, I'm sending non-English characters.
$qsBody = $rowQuestion['body']; // This is what I read from database that contains some new line characters $strReply = $qsBody; $strSendMethod = "SendMessage?chat_id=$ChatId&text='$strReply'"; file_get_contents( BOT_TARGET_ADDRESS . $strSendMethod ); // The message received by user contains _ instead of new line.
source share