MadelineProto/docs/TD_docs/constructors/inputMessageDocument.md

885 B

title description
inputMessageDocument Document message

Constructor: inputMessageDocument

Back to constructors index

Document message

Attributes:

Name Type Required Description
document InputFile Yes Document to send
thumb InputThumb Yes Document thumb, if available
caption string Yes Document caption, 0-200 characters

Type: InputMessageContent

Example:

$inputMessageDocument = ['_' => 'inputMessageDocument', 'document' => InputFile, 'thumb' => InputThumb, 'caption' => string, ];

Or, if you're into Lua:

inputMessageDocument={_='inputMessageDocument', document=InputFile, thumb=InputThumb, caption=string, }