I want to send code block with telegram bot in PHP language. I already use "`", but I did not get any result.
code block
I use HTML parse_mode.
there are 2 formatting options: https://core.telegram.org/bots/api#formatting-options
also see parse_mode in sendMessage: https://core.telegram.org/bots/api#sendmessage
you should set it in this param and then use concurrent formatting (markdown in your case)
UPD if you use html mode, use <code> for inline block and <pre> for multiline
<code>
<pre>
2.1m questions
2.1m answers
63 comments
56.7k users