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 Detail

      • InputMediaAnimation

        public InputMediaAnimation()
    • Method Detail

      • getWidth

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

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

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

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

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

        public void setDuration​(@Nullable
                                java.lang.Integer duration)
        Parameters:
        duration - Animation duration.