mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 22:36:55 +01:00
1.0 KiB
1.0 KiB
title | description |
---|---|
inputMessageDocument | Document message |
Constructor: inputMessageDocument
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'];
PWRTelegram json-encoded version:
{"_": "inputMessageDocument", "document": InputFile, "thumb": InputThumb, "caption": "string"}
Or, if you're into Lua:
inputMessageDocument={_='inputMessageDocument', document=InputFile, thumb=InputThumb, caption='string'}