1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-02 21:27:46 +01:00
MadelineProto/old_docs/API_docs_v25/constructors/messageMediaDocument.md

43 lines
719 B
Markdown
Raw Normal View History

---
title: messageMediaDocument
description: messageMediaDocument attributes, type and example
---
## Constructor: messageMediaDocument
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
|document|[Document](../types/Document.md) | Yes|
### Type: [MessageMedia](../types/MessageMedia.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$messageMediaDocument = ['_' => 'messageMediaDocument', 'document' => Document];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "messageMediaDocument", "document": Document}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
messageMediaDocument={_='messageMediaDocument', document=Document}
```