InputRichBlockListItem

class pyrogram.types.InputRichBlockListItem[source]

An item in a InputRichBlockList.

A list item either contains a single text line or a collection of nested blocks.

Parameters:
  • blocks (List of InputRichBlock, optional) – Nested blocks that make up the list item content. Mutually exclusive with text.

  • text (str | RichText, optional) – Simple text content of the list item. Mutually exclusive with blocks.

  • has_checkbox (bool, optional) – Pass True if the item has a checkbox.

  • is_checked (bool, optional) – Pass True if the item has a checked checkbox.