# danog\MadelineProto\EventHandler\Message\Rich\Block\Details: A details block: a summary that can be expanded to show its content.

[Back to index](../../../../../../index.html)

> Author: Daniil Gentili <daniil@daniil.it>  
  

A details block: a summary that can be expanded to show its content.  



## Properties
* `$summary`: `danog\MadelineProto\EventHandler\Message\Rich\RichText` Summary of the block, always shown
* `$blocks`: `list<Block>` Content of the block, shown when expanded.
* `$open`: `bool` Whether the block is expanded by default

## Method list:
* [`__construct(\danog\MadelineProto\EventHandler\Message\Rich\RichText|string $summary, list<\danog\MadelineProto\EventHandler\Message\Rich\Block> $blocks, bool $open = false)`](#__construct)

## Methods:
### <a name="__construct"></a> `__construct(\danog\MadelineProto\EventHandler\Message\Rich\RichText|string $summary, list<\danog\MadelineProto\EventHandler\Message\Rich\Block> $blocks, bool $open = false)`




Parameters:

* `$summary`: `\danog\MadelineProto\EventHandler\Message\Rich\RichText|string`   
* `$blocks`: `list<\danog\MadelineProto\EventHandler\Message\Rich\Block>` Content of the block, shown when expanded  
* `$open`: `bool`   


#### See also: 
* [`\danog\MadelineProto\EventHandler\Message\Rich\RichText`: Styled text of a [rich message](https://core.telegram.org/bots/api#richtext): a tree of plain texts, styles, links and so on.](../../../../../../danog/MadelineProto/EventHandler/Message/Rich/RichText.html)
* [`\danog\MadelineProto\EventHandler\Message\Rich\Block`: A block of a [rich message](https://core.telegram.org/bots/api#richblock): a heading, a paragraph, a list, a table, a media and so on.](../../../../../../danog/MadelineProto/EventHandler/Message/Rich/Block.html)




---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
