Skip to content

MessagePhoto

Type · TDLib 1.8.67 · d1085f9c

A photo message

MessagePhoto(
  photo: Photo,
  video: Video,
  caption: FormattedText,
  show_caption_above_media: Bool,
  has_spoiler: Bool,
  is_secret: Bool
) → MessageContent

photo

Photo

The photo

video

Video

The video representing the live photo; may be null if the photo is static

caption

FormattedText

Photo caption

show_caption_above_media

Bool

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

has_spoiler

Bool

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

is_secret

Bool

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