Interface MessagePhoto

A photo message. Subtype of MessageContent.

interface MessagePhoto {
    @type: "messagePhoto";
    caption: FormattedText;
    has_spoiler?: boolean;
    is_secret?: boolean;
    photo: Photo;
    show_caption_above_media?: boolean;
}

Properties

@type: "messagePhoto"
caption: FormattedText

Photo caption.

has_spoiler?: boolean

True, if the photo preview must be covered by a spoiler animation.

is_secret?: boolean

True, if the photo must be blurred and must be shown only while tapped.

photo: Photo

The photo.

show_caption_above_media?: boolean

True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo.