Interface InputDocument

A document (general file) to be sent.

interface InputDocument {
    @type: "inputDocument";
    disable_content_type_detection?: boolean;
    document: InputFile;
    thumbnail: InputThumbnail;
}

Properties

@type: "inputDocument"
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

File to be sent.

thumbnail: InputThumbnail

Document thumbnail; pass null to skip thumbnail uploading.