MadelineProtoDocs/docs/API_docs/constructors/inputDocument.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1009 B

title description image
inputDocument Document https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: inputDocument

Back to constructors index

Document

Attributes:

Name Type Required Description
id long Yes ID
access_hash long Yes Access hash
file_reference bytes Yes File reference

Type: InputDocument

Example:

$inputDocument = ['_' => 'inputDocument', 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes'];

PWRTelegram json-encoded version:

{"_": "inputDocument", "id": long, "access_hash": long, "file_reference": {"_": "bytes", "bytes":"base64 encoded bytes"}}

Or, if you're into Lua:

inputDocument={_='inputDocument', id=long, access_hash=long, file_reference='bytes'}