MadelineProtoDocs/old_docs/API_docs_v82/constructors/inputSingleMedia.md

41 lines
953 B
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]];
```
Or, if you're into Lua:
```lua
inputSingleMedia={_='inputSingleMedia', media=InputMedia, message='string', entities={MessageEntity}}
```