2017-11-15 13:41:58 +01:00
|
|
|
---
|
|
|
|
title: inputSingleMedia
|
|
|
|
description: inputSingleMedia attributes, type and example
|
|
|
|
---
|
|
|
|
## Constructor: inputSingleMedia
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|---------------|----------|
|
2018-02-18 14:18:18 +01:00
|
|
|
|media|[InputMedia](../types/InputMedia.md) | Optional|
|
|
|
|
|message|[string](../types/string.md) | Yes|
|
|
|
|
|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|
|
2017-11-15 13:41:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [InputSingleMedia](../types/InputSingleMedia.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
2018-02-18 14:18:18 +01:00
|
|
|
$inputSingleMedia = ['_' => 'inputSingleMedia', 'media' => InputMedia, 'message' => 'string', 'entities' => [MessageEntity]];
|
2017-11-15 13:41:58 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
2018-02-18 14:18:18 +01:00
|
|
|
{"_": "inputSingleMedia", "media": InputMedia, "message": "string", "entities": [MessageEntity]}
|
2017-11-15 13:41:58 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2018-02-18 14:18:18 +01:00
|
|
|
inputSingleMedia={_='inputSingleMedia', media=InputMedia, message='string', entities={MessageEntity}}
|
2017-11-15 13:41:58 +01:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|