Interface InputMessageDocument

A document message (general file). Subtype of InputMessageContent.

interface InputMessageDocument {
    @type: "inputMessageDocument";
    caption: FormattedText;
    disable_content_type_detection?: boolean;
    document: InputFile;
    thumbnail: InputThumbnail;
}

Properties

@type: "inputMessageDocument"
caption: FormattedText

Document caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.

disable_content_type_detection?: boolean

Pass true to disable automatic file type detection and send the document as a file. Always true for files sent to secret chats.

document: InputFile

Document to be sent.

thumbnail: InputThumbnail

Document thumbnail; pass null to skip thumbnail uploading.