Class TdApi.MessagePhoto

Enclosing class:
TdApi

public static class TdApi.MessagePhoto extends TdApi.MessageContent
A photo message.
  • Field Details

    • photo

      public TdApi.Photo photo
      The photo.
    • caption

      public TdApi.FormattedText caption
      Photo caption.
    • showCaptionAboveMedia

      public boolean showCaptionAboveMedia
      True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo.
    • hasSpoiler

      public boolean hasSpoiler
      True, if the photo preview must be covered by a spoiler animation.
    • isSecret

      public boolean isSecret
      True, if the photo must be blurred and must be shown only while tapped.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • MessagePhoto

      public MessagePhoto()
      A photo message.
    • MessagePhoto

      public MessagePhoto(TdApi.Photo photo, TdApi.FormattedText caption, boolean showCaptionAboveMedia, boolean hasSpoiler, boolean isSecret)
      A photo message.
      Parameters:
      photo - The photo.
      caption - Photo caption.
      showCaptionAboveMedia - True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo.
      hasSpoiler - True, if the photo preview must be covered by a spoiler animation.
      isSecret - True, if the photo must be blurred and must be shown only while tapped.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR