MadelineProto/docs/TD_docs/constructors/optionInteger.md

45 lines
659 B
Markdown
Raw Normal View History

---
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:
```
2017-07-23 16:33:46 +02:00
$optionInteger = ['_' => 'optionInteger', 'value' => int];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "optionInteger", "value": int}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
optionInteger={_='optionInteger', value=int}
```