1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 01:46:55 +01:00
MadelineProto/old_docs/API_docs_v73/constructors/inputSingleMedia.md

43 lines
731 B
Markdown
Raw Normal View History

---
title: inputSingleMedia
description: inputSingleMedia attributes, type and example
---
## Constructor: inputSingleMedia
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|media|[MessageMedia, Message, Update or InputMedia](../types/InputMedia.md) | Optional|
### 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}
```