peyk.platforms.telegram.types.rich_message

Classes

RichMessage([text, blocks, is_rtl])

Rich formatted message.

class peyk.platforms.telegram.types.rich_message.RichMessage(text: str = '', blocks: object | None = None, is_rtl: bool | None = None)[source]

Bases: object

Rich formatted message.

Variables:
  • blocks (object | None) – Content of the message

  • is_rtl (bool | None) – True, if the rich message must be shown right-to-left

text: str = ''
blocks: object | None = None
is_rtl: bool | None = None
classmethod from_dict(data: dict | None) RichMessage | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.