RichTextSpoiler¶
- class aiogram.types.rich_text_spoiler.RichTextSpoiler(*, type: Literal[RichTextType.SPOILER] = RichTextType.SPOILER, text: RichTextUnion, **extra_data: Any)[source]¶
A text covered by a spoiler.
Source: https://core.telegram.org/bots/api#richtextspoiler
- type: Literal[RichTextType.SPOILER]¶
Type of the rich text, always ‘spoiler’
- text: RichTextUnion¶
The text