Interface Document

Describes a document of any type.

interface Document {
    @type: "document";
    document: File;
    file_name: string;
    mime_type: string;
    minithumbnail: Minithumbnail;
    thumbnail: Thumbnail;
}

Properties

@type: "document"
document: File

File containing the document.

file_name: string

Original name of the file; as defined by the sender.

mime_type: string

MIME type of the file; as defined by the sender.

minithumbnail: Minithumbnail

Document minithumbnail; may be null.

thumbnail: Thumbnail

Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null.