Interface InputInlineResultFile

Inline result containing a document

If message is not provided, InputInlineMessageMedia is used with empty caption.

interface InputInlineResultFile {
    description?: string;
    id: string;
    media: string | RawInputDocument | RawInputWebDocument;
    message?: InputInlineMessage;
    mime?: string;
    thumb?: string | RawInputWebDocument;
    title: string;
    type: "file";
}

Hierarchy (view full)

Properties

description?: string

Description of the result

id: string

Unique ID of the result

The file itself. When using URL, only PDF and ZIP are supported.

Can be a URL, a TDLib and Bot API compatible File ID, or a TL object representing either of them.

Message to send when the result is selected.

By default, is automatically generated, and details about how it is generated can be found in subclasses' description

mime?: string

MIME type of the file.

Due to some Telegram limitation, you can only send PDF and ZIP files from URL (application/pdf and application/zip MIMEs respectively).

Must be provided if media is a URL

thumb?: string | RawInputWebDocument

Photo thumbnail URL (must be jpeg), only applicable in case media is a URL

media

title: string

Title of the result

type: "file"