1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 03:56:57 +01:00
MadelineProto/docs/TD_docs/constructors/optionString.md
2017-07-23 16:33:46 +02:00

45 lines
671 B
Markdown

---
title: optionString
description: String option
---
## Constructor: optionString
[Back to constructors index](index.md)
String option
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|value|[string](../types/string.md) | Yes|Value of an option|
### Type: [OptionValue](../types/OptionValue.md)
### Example:
```
$optionString = ['_' => 'optionString', 'value' => 'string'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "optionString", "value": "string"}
```
Or, if you're into Lua:
```
optionString={_='optionString', value='string'}
```