MadelineProtoDocs/old_docs/API_docs_v109/constructors/pageBlockDetails.md
2020-03-06 12:24:14 +01:00

934 B

title description image
pageBlockDetails A collapsible details block https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: pageBlockDetails

Back to constructors index

A collapsible details block

Attributes:

Name Type Required Description
open Bool Optional Whether the block is open by default
blocks Array of PageBlock Yes Blocks
title RichText Yes Always visible heading for the block

Type: PageBlock

Example:

$pageBlockDetails = ['_' => 'pageBlockDetails', 'open' => Bool, 'blocks' => [PageBlock, PageBlock], 'title' => RichText];

Or, if you're into Lua:

pageBlockDetails={_='pageBlockDetails', open=Bool, blocks={PageBlock}, title=RichText}