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