# danog\MadelineProto\RichParseMode: How to parse the text of a [rich message](https://core.telegram.org/bots/api#sendrichmessage).

> 
Unlike ParseMode, MadelineProto doesn't parse Markdown and HTML: Telegram does, with the syntax of rich messages (headings, lists, tables, media embedded by ID with `tg://photo?id=` and `tg://document?id=`, and so on).


[Back to index](../../index.html)

> Author: Daniil Gentili <daniil@daniil.it>  
  

How to parse the text of a [rich message](https://core.telegram.org/bots/api#sendrichmessage).  


Unlike ParseMode, MadelineProto doesn't parse Markdown and HTML: Telegram does, with the syntax of rich messages (headings, lists, tables, media embedded by ID with `tg://photo?id=` and `tg://document?id=`, and so on).



## Constants
* `danog\MadelineProto\RichParseMode::MARKDOWN`: Markdown, parsed by Telegram

* `danog\MadelineProto\RichParseMode::HTML`: HTML, parsed by Telegram

* `danog\MadelineProto\RichParseMode::TEXT`: Plain text, sent as a single paragraph

## Properties
* `$name`: `string` 
* `$value`: `string` 

## Method list:
* [`cases(): array`](#cases)
* [`from(string|int $value): static`](#from)
* [`tryFrom(string|int $value): ?static`](#tryFrom)

## Methods:
### <a name="cases"></a> `cases(): array`





### <a name="from"></a> `from(string|int $value): static`




Parameters:

* `$value`: `string|int`   



### <a name="tryFrom"></a> `tryFrom(string|int $value): ?static`




Parameters:

* `$value`: `string|int`   



---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
