InputRichBlockDetails

class pyrogram.types.InputRichBlockDetails[source]

A details block, corresponding to the HTML tag <details>.

Creates a collapsible section that the user can expand or collapse.

Parameters:
  • summary (str | RichText) – Summary text of the details element, corresponding to the HTML tag <summary>. This is the visible label when the section is collapsed.

  • blocks (List of InputRichBlock) – Blocks inside the details element (hidden until expanded).

  • is_open (bool, optional) – Pass True to display the details element in the open (expanded) state.