Source code for aiogram.types.input_rich_block_list_item

from __future__ import annotations

from typing import TYPE_CHECKING, Any

from .base import TelegramObject

if TYPE_CHECKING:
    from .input_rich_block import InputRichBlock
    from .input_rich_block_union import InputRichBlockUnion


[docs] class InputRichBlockListItem(TelegramObject): """ An item of a list to be sent. Source: https://core.telegram.org/bots/api#inputrichblocklistitem """ blocks: list[InputRichBlockUnion] """The content of the item""" has_checkbox: bool | None = None """*Optional*. Pass :code:`True` if the item has a checkbox""" is_checked: bool | None = None """*Optional*. Pass :code:`True` if the item has a checked checkbox""" value: int | None = None """*Optional*. For ordered lists, the numeric value of the item label""" type: str | None = None """*Optional*. For ordered lists, the type of the item label; must be one of 'a' for lowercase letters, 'A' for uppercase letters, 'i' for lowercase Roman numerals, 'I' for uppercase Roman numerals, or '1' for decimal numbers""" if TYPE_CHECKING: # DO NOT EDIT MANUALLY!!! # This section was auto-generated via `butcher` def __init__( __pydantic__self__, *, blocks: list[InputRichBlockUnion], has_checkbox: bool | None = None, is_checked: bool | None = None, value: int | None = None, type: str | None = None, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` # Is needed only for type checking and IDE support without any additional plugins super().__init__( blocks=blocks, has_checkbox=has_checkbox, is_checked=is_checked, value=value, type=type, **__pydantic_kwargs, )