peyk.platforms.telegram.types.rich_text_spoiler

Classes

RichTextSpoiler([text, type])

A text covered by a spoiler.

class peyk.platforms.telegram.types.rich_text_spoiler.RichTextSpoiler(text: str = '', type: str = 'spoiler')[source]

Bases: object

A text covered by a spoiler.

Variables:
  • type (str) – Type of the rich text, always ‘spoiler’

  • text (str) – The text

text: str = ''
type: str = 'spoiler'
classmethod from_dict(data)[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.