MadelineProtoDocs/docs/API_docs/constructors/inputDocument.md

32 lines
981 B
Markdown
Raw Normal View History

2024-05-01 14:53:46 +02:00
---
title: "inputDocument"
description: "Defines a document for subsequent interaction."
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputDocument
[Back to constructors index](/API_docs/constructors/index.html)
Defines a document for subsequent interaction.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[long](/API_docs/types/long.html) | Yes|Document ID|
|access\_hash|[long](/API_docs/types/long.html) | Yes|**access\_hash** parameter from the [document](../constructors/document.html) constructor|
|file\_reference|[bytes](/API_docs/types/bytes.html) | Yes|[File reference](https://core.telegram.org/api/file_reference)|
### Type: [InputDocument](/API_docs/types/InputDocument.html)
### Example:
```
$inputDocument = ['_' => 'inputDocument', 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes'];
```