RichTextCode

class aiogram.types.rich_text_code.RichTextCode(*, type: Literal[RichTextType.CODE] = RichTextType.CODE, text: RichTextUnion, **extra_data: Any)[source]

A monowidth text.

Source: https://core.telegram.org/bots/api#richtextcode

type: Literal[RichTextType.CODE]

Type of the rich text, always ‘code’

text: RichTextUnion

The text