mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 02:26:55 +01:00
38 lines
558 B
Markdown
38 lines
558 B
Markdown
|
---
|
||
|
title: optionBoolean
|
||
|
description: Boolean option
|
||
|
---
|
||
|
## Constructor: optionBoolean
|
||
|
[Back to constructors index](index.md)
|
||
|
|
||
|
|
||
|
|
||
|
Boolean option
|
||
|
|
||
|
### Attributes:
|
||
|
|
||
|
| Name | Type | Required | Description |
|
||
|
|----------|:-------------:|:--------:|------------:|
|
||
|
|value|[Bool](../types/Bool.md) | Yes|Value of an option|
|
||
|
|
||
|
|
||
|
|
||
|
### Type: [OptionValue](../types/OptionValue.md)
|
||
|
|
||
|
|
||
|
### Example:
|
||
|
|
||
|
```
|
||
|
$optionBoolean = ['_' => 'optionBoolean', 'value' => Bool, ];
|
||
|
```
|
||
|
|
||
|
Or, if you're into Lua:
|
||
|
|
||
|
|
||
|
```
|
||
|
optionBoolean={_='optionBoolean', value=Bool, }
|
||
|
|
||
|
```
|
||
|
|
||
|
|