MadelineProto/docs/TD_docs/constructors/test_string.md

43 lines
630 B
Markdown
Raw Normal View History

---
title: test.string
description: test_string attributes, type and example
---
## Constructor: test.string
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
|value|[string](../types/string.md) | Yes|
### Type: [test\_String](../types/test_String.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$test_string = ['_' => 'test.string', 'value' => 'string'];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "test.string", "value": "string"}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
test_string={_='test.string', value='string'}
```