Skip to content

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

Back to index

Author: Daniil Gentili daniil@daniil.it

How to parse the text of a rich message.

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:

Methods:

cases(): array

from(string|int $value): static

Parameters:

  • $value: string|int

tryFrom(string|int $value): ?static

Parameters:

  • $value: string|int

Generated by danog/phpdoc