Interface InputMessagePhoto

A photo message. Subtype of InputMessageContent.

interface InputMessagePhoto {
    @type: "inputMessagePhoto";
    added_sticker_file_ids: number[];
    caption: FormattedText;
    has_spoiler?: boolean;
    height: number;
    photo: InputFile;
    self_destruct_type: MessageSelfDestructType;
    show_caption_above_media?: boolean;
    thumbnail: InputThumbnail;
    width: number;
}

Properties

@type: "inputMessagePhoto"
added_sticker_file_ids: number[]

File identifiers of the stickers added to the photo, if applicable.

caption: FormattedText

Photo caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.

has_spoiler?: boolean

True, if the photo preview must be covered by a spoiler animation; not supported in secret chats.

height: number

Photo height.

photo: InputFile

Photo to send. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20.

self_destruct_type: MessageSelfDestructType

Photo self-destruct type; pass null if none; private chats only.

show_caption_above_media?: boolean

True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo; not supported in secret chats.

thumbnail: InputThumbnail

Photo thumbnail to be sent; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats.

width: number

Photo width.