Documentation - v0.27.0
    Preparing search index...

    Interface InputMediaPhoto

    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 Summary)

    Index

    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"