InputRichBlockDetails¶
- class aiogram.types.input_rich_block_details.InputRichBlockDetails(*, type: Literal[InputRichBlockType.DETAILS] = InputRichBlockType.DETAILS, summary: RichTextUnion, blocks: list[Annotated[InputRichBlockParagraph | InputRichBlockSectionHeading | InputRichBlockPreformatted | InputRichBlockFooter | InputRichBlockDivider | InputRichBlockMathematicalExpression | InputRichBlockAnchor | InputRichBlockList | InputRichBlockBlockQuotation | InputRichBlockPullQuotation | InputRichBlockCollage | InputRichBlockSlideshow | InputRichBlockTable | InputRichBlockDetails | InputRichBlockMap | InputRichBlockAnimation | InputRichBlockAudio | InputRichBlockPhoto | InputRichBlockVideo | InputRichBlockVoiceNote | InputRichBlockThinking, FieldInfo(annotation=NoneType, required=True, discriminator='type')]], is_open: bool | None = None, **extra_data: Any)[source]¶
An expandable block for details disclosure, corresponding to the HTML tag
<details>.Source: https://core.telegram.org/bots/api#inputrichblockdetails
- type: Literal[InputRichBlockType.DETAILS]¶
Type of the block, always ‘details’
- summary: RichTextUnion¶
Always shown summary of the block
- blocks: list[InputRichBlockUnion]¶
Content of the block
- is_open: bool | None¶
Optional. Pass
Trueif the content of the block is visible by default