45 lines
687 B
Markdown
45 lines
687 B
Markdown
|
---
|
||
|
title: dataJSON
|
||
|
description: Data json
|
||
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||
|
---
|
||
|
# Constructor: dataJSON
|
||
|
[Back to constructors index](index.md)
|
||
|
|
||
|
|
||
|
|
||
|
Data json
|
||
|
|
||
|
### Attributes:
|
||
|
|
||
|
| Name | Type | Required | Description |
|
||
|
|----------|---------------|----------|-------------|
|
||
|
|data|[string](../types/string.md) | Yes|Data|
|
||
|
|
||
|
|
||
|
|
||
|
### Type: [DataJSON](../types/DataJSON.md)
|
||
|
|
||
|
|
||
|
### Example:
|
||
|
|
||
|
```php
|
||
|
$dataJSON = ['_' => 'dataJSON', 'data' => 'string'];
|
||
|
```
|
||
|
|
||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||
|
|
||
|
```
|
||
|
{"_": "dataJSON", "data": "string"}
|
||
|
```
|
||
|
|
||
|
|
||
|
Or, if you're into Lua:
|
||
|
|
||
|
```lua
|
||
|
dataJSON={_='dataJSON', data='string'}
|
||
|
|
||
|
```
|
||
|
|
||
|
|