Class TdApi.InputMessageAnimation

Enclosing class:
TdApi

public static class TdApi.InputMessageAnimation extends TdApi.InputMessageContent
An animation message (GIF-style).
  • Field Details

    • animation

      public TdApi.InputAnimation animation
      The animation to be sent.
    • caption

      public TdApi.FormattedText caption
      Animation caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
    • showCaptionAboveMedia

      public boolean showCaptionAboveMedia
      True, if the caption must be shown above the animation; otherwise, the caption must be shown below the animation; not supported in secret chats.
    • hasSpoiler

      public boolean hasSpoiler
      True, if the animation preview must be covered by a spoiler animation; not supported in secret chats.
    • CONSTRUCTOR

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

    • InputMessageAnimation

      public InputMessageAnimation()
      An animation message (GIF-style).
    • InputMessageAnimation

      public InputMessageAnimation(TdApi.InputAnimation animation, TdApi.FormattedText caption, boolean showCaptionAboveMedia, boolean hasSpoiler)
      An animation message (GIF-style).
      Parameters:
      animation - The animation to be sent.
      caption - Animation caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
      showCaptionAboveMedia - True, if the caption must be shown above the animation; otherwise, the caption must be shown below the animation; not supported in secret chats.
      hasSpoiler - True, if the animation preview must be covered by a spoiler animation; not supported in secret chats.
  • 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