2017-03-11 19:54:51 +01:00
|
|
|
---
|
|
|
|
title: inputMessageDocument
|
|
|
|
description: Document message
|
|
|
|
---
|
|
|
|
## Constructor: inputMessageDocument
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Document message
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|:-------------:|:--------:|------------:|
|
|
|
|
|document|[InputFile](../types/InputFile.md) | Yes|Document to send|
|
|
|
|
|thumb|[InputThumb](../types/InputThumb.md) | Yes|Document thumb, if available|
|
|
|
|
|caption|[string](../types/string.md) | Yes|Document caption, 0-200 characters|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [InputMessageContent](../types/InputMessageContent.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
$inputMessageDocument = ['_' => 'inputMessageDocument', 'document' => InputFile, 'thumb' => InputThumb, 'caption' => 'string'];
|
2017-03-11 19:54:51 +01:00
|
|
|
```
|
|
|
|
|
2017-07-23 16:11:02 +02:00
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
{"_": "inputMessageDocument", "document": InputFile, "thumb": InputThumb, "caption": "string"}
|
2017-07-23 16:11:02 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
inputMessageDocument={_='inputMessageDocument', document=InputFile, thumb=InputThumb, caption='string'}
|
2017-03-11 19:54:51 +01:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|