Module tdlight.api

Class TdApi.MessagePhoto

Enclosing class:
TdApi

public static final 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.
    • 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
      See Also:
  • Constructor Details

    • MessagePhoto

      public MessagePhoto()
      A photo message.
    • MessagePhoto

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

      public MessagePhoto(DataInput input) throws IOException
      A photo message.
      Throws:
      IOException
  • Method Details