mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-13 22:07:20 +01:00
43 lines
693 B
Markdown
43 lines
693 B
Markdown
|
---
|
||
|
title: inputSingleMedia
|
||
|
description: inputSingleMedia attributes, type and example
|
||
|
---
|
||
|
## Constructor: inputSingleMedia
|
||
|
[Back to constructors index](index.md)
|
||
|
|
||
|
|
||
|
|
||
|
### Attributes:
|
||
|
|
||
|
| Name | Type | Required |
|
||
|
|----------|---------------|----------|
|
||
|
|media|[InputMedia](../types/InputMedia.md) | Yes|
|
||
|
|
||
|
|
||
|
|
||
|
### Type: [InputSingleMedia](../types/InputSingleMedia.md)
|
||
|
|
||
|
|
||
|
### Example:
|
||
|
|
||
|
```
|
||
|
$inputSingleMedia = ['_' => 'inputSingleMedia', 'media' => InputMedia];
|
||
|
```
|
||
|
|
||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||
|
|
||
|
```
|
||
|
{"_": "inputSingleMedia", "media": InputMedia}
|
||
|
```
|
||
|
|
||
|
|
||
|
Or, if you're into Lua:
|
||
|
|
||
|
|
||
|
```
|
||
|
inputSingleMedia={_='inputSingleMedia', media=InputMedia}
|
||
|
|
||
|
```
|
||
|
|
||
|
|