Class InputMediaAnimation


public class InputMediaAnimation extends InputMediaDocument
Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
  • Constructor Details

    • InputMediaAnimation

      public InputMediaAnimation()
  • Method Details

    • getWidth

      @Nullable public @Nullable Integer getWidth()
      Returns:
      Animation width.
    • setWidth

      public void setWidth(@Nullable @Nullable Integer width)
      Parameters:
      width - Animation width.
    • getHeight

      @Nullable public @Nullable Integer getHeight()
      Returns:
      Animation height.
    • setHeight

      public void setHeight(@Nullable @Nullable Integer height)
      Parameters:
      height - Animation height.
    • getDuration

      @Nullable public @Nullable Integer getDuration()
      Returns:
      Animation duration.
    • setDuration

      public void setDuration(@Nullable @Nullable Integer duration)
      Parameters:
      duration - Animation duration.
    • toString

      public String toString()
      Overrides:
      toString in class InputMediaDocument