1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-14 06:47:20 +01:00
MadelineProto/docs/TD_docs/constructors/inputMessageDocument.md

40 lines
885 B
Markdown
Raw Normal View History

---
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:
```
$inputMessageDocument = ['_' => 'inputMessageDocument', 'document' => InputFile, 'thumb' => InputThumb, 'caption' => string, ];
```
Or, if you're into Lua:
```
inputMessageDocument={_='inputMessageDocument', document=InputFile, thumb=InputThumb, caption=string, }
```