Skip to content

InputMessagePhoto

Type · TDLib 1.8.67 · d1085f9c

A photo message

InputMessagePhoto(
  photo: InputPhoto,
  caption: FormattedText,
  show_caption_above_media: Bool,
  self_destruct_type: MessageSelfDestructType,
  has_spoiler: Bool
) → InputMessageContent

photo

InputPhoto

Photo to be sent

caption

FormattedText

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

show_caption_above_media

Bool

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

self_destruct_type

MessageSelfDestructType

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

has_spoiler

Bool

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