InputRichBlockButtons

class aiogram.types.input_rich_block_buttons.InputRichBlockButtons(*, type: Literal[InputRichBlockType.BUTTONS] = InputRichBlockType.BUTTONS, buttons: list[RichMessageButton], align: str | None = None, **extra_data: Any)[source]

A block containing a list of buttons that are shown in one row, corresponding to the custom HTML tag <tg-button-row>.

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

type: Literal[InputRichBlockType.BUTTONS]

Type of the block, always ‘buttons’

buttons: list[RichMessageButton]

List of 1-8 buttons to send

align: str | None

Optional. Horizontal alignment of the buttons. Currently, must be one of ‘left’, ‘center’, or ‘right’