title: Telegram REST API, send newline in message text?
body: <p>I want to send an message via the Telegram API in a <code>&lt;pre&gt;</code> block or <code>```</code> (HTML or markdown parse mode, I have no preference).</p>
  
  <p>The text is a long string with some line breaks. To make it easy to read I want to send it as code. The new lines are in the <code>\n</code> format, so the Telegram API can handle that. </p>
  
  <p>But in the code block I can't see the newlines. I've used other bots that can send me some lines in a code block, so I'm reasobaly sure it's possible. </p>
  
  <p>Can somebody help me with this?</p>
  
  <p>This is the code that I'm currently using:</p>
  
  <pre><code>$url = "https://api.telegram.org/$telegram_apikey/sendMessage?chat_id=$telegram_chatid&amp;parse_mode=Markdown&amp;text=```" . $message ."```";
          $telegramResult = file_get_contents($url
  );
  </code></pre>
  
  <p>Where message is something like this: </p>
  
  <pre><code>-------------------------------------------- \n
  ------------ IMPORT RESULTS ---------------- \n
  -------------------------------------------- \n
  Product count: 12345 \n
  Created: 1234 \n
  Total time:  200 \n
  -------------------------------------------- \n
  </code></pre>