MadelineProtoDocs/old_docs/API_docs_v82/constructors/inputSingleMedia.md

47 lines
1.1 KiB
Markdown
Raw Normal View History

2018-12-26 02:56:50 +01:00
---
title: inputSingleMedia
description: Single media
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputSingleMedia
[Back to constructors index](index.md)
Single media
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|media|[MessageMedia, Message, Update or InputMedia](../types/InputMedia.md) | Optional|Media|
|message|[string](../types/string.md) | Yes|Message|
|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|Entities|
### Type: [InputSingleMedia](../types/InputSingleMedia.md)
### Example:
```php
$inputSingleMedia = ['_' => 'inputSingleMedia', 'media' => InputMedia, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity]];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "inputSingleMedia", "media": InputMedia, "message": "string", "entities": [MessageEntity]}
```
Or, if you're into Lua:
```lua
inputSingleMedia={_='inputSingleMedia', media=InputMedia, message='string', entities={MessageEntity}}
```