Interface InputMessagePhoto

A photo message. Subtype of InputMessageContent.

interface InputMessagePhoto {
    @type: "inputMessagePhoto";
    caption: FormattedText;
    has_spoiler?: boolean;
    photo: InputPhoto;
    self_destruct_type: MessageSelfDestructType;
    show_caption_above_media?: boolean;
}

Properties

@type: "inputMessagePhoto"
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.

photo: InputPhoto

Photo to be sent.

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.