Class InputMediaAnimation

  • All Implemented Interfaces:
    Serializable

    public class InputMediaAnimation
    extends InputMedia
    Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
    See Also:
    Serialized Form
    • Constructor Detail

      • InputMediaAnimation

        public InputMediaAnimation​(String media,
                                   String caption,
                                   String parseMode,
                                   Integer width,
                                   Integer height,
                                   Integer duration)
        Builds InputMediaAnimation instance.
        Parameters:
        media - File to send. Pass a file_id to send a file that exists on the Telegram servers, or pass an HTTP URL for Telegram to get a file from the Internet
        caption - Optional. Caption of the video to be sent, 0-1024 characters
        parseMode - Optional. Send 'Markdown' or 'HTML', if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
        width - Optional. width.
        height - Optional. height.
        duration - Optional. duration.
      • InputMediaAnimation

        public InputMediaAnimation()
    • Method Detail

      • getWidth

        public Integer getWidth()
      • setWidth

        public void setWidth​(Integer width)
      • getHeight

        public Integer getHeight()
      • setHeight

        public void setHeight​(Integer heigth)
      • getDuration

        public Integer getDuration()
      • setDuration

        public void setDuration​(Integer duration)