Core: Send bold and italic messages

Created on 24 Aug 2018  路  3Comments  路  Source: php-telegram-bot/core

When I send this text: __italic__ **bold** normal by used this command: Request::sendMessage to the channel, The text received in the channel was not bold and italic, and I was get that plain be like original message: __italic__ **bold** normal.
Why is this and resolve for send bold or italic messages?

Most helpful comment

parse_mode | String | Optional. Send聽Markdown聽or聽HTML, if you want Telegram apps to show聽bold, italic, fixed-width text or inline URLs聽in the media caption.

You need to set parse_mode parameter to markdown.

All 3 comments

parse_mode | String | Optional. Send聽Markdown聽or聽HTML, if you want Telegram apps to show聽bold, italic, fixed-width text or inline URLs聽in the media caption.

You need to set parse_mode parameter to markdown.

Hello Guys About this item.

If I had the following text:
Some_long_text_with_underline

The telegram understanding this is markdown, but is not.
How to avoid to happen this things?

@wanderleihuttel You will need to escape the underscores with a backslash, like this:
Some\_long\_text\_with\_underline

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sayjeyhi picture sayjeyhi  路  3Comments

dorcu picture dorcu  路  3Comments

Bl0ck154 picture Bl0ck154  路  3Comments

Zoha picture Zoha  路  3Comments

esomkin picture esomkin  路  3Comments