A photo to be sent

interface InputMediaPhoto {
    caption?: InputText;
    file: InputFileLike;
    fileMime?: string;
    fileName?: string;
    fileSize?: number;
    spoiler?: boolean;
    ttlSeconds?: number;
    type: "photo";
}

Hierarchy (view full)

Properties

caption?: InputText

Caption of the media

File to be sent

fileMime?: string

Override MIME type for the file

Only applicable to newly uploaded files.

fileName?: string

Override file name for the file.

Only applicable to newly uploaded files.

fileSize?: number

Override file size for the file

Only applicable to newly uploaded files.

spoiler?: boolean

Whether this photo should be hidden with a spoiler

ttlSeconds?: number

TTL for the media in seconds.

Only applicable to some media types

type: "photo"