擅长:python、mysql、java
<p>唯一可以使用的颜色是红色或将背景颜色设置为灰色。</p>
<pre><code>str = "`Hello`" #this will turn the text red on Telegram.
str = "```Hello```" #this will turn the background color gray of the text on Telegram
</code></pre>
<p>然后在<strong>sendMessage</strong>函数中,需要添加参数<strong>parse_mode</strong>并将其设置为<strong>“Markdown”</strong>。</p>