Class InlineQueryResultMpeg4Gif


  • public class InlineQueryResultMpeg4Gif
    extends InlineQueryResult
    Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can provide message_text to send it instead of the animation.
    • Constructor Detail

      • InlineQueryResultMpeg4Gif

        public InlineQueryResultMpeg4Gif()
      • InlineQueryResultMpeg4Gif

        public InlineQueryResultMpeg4Gif​(String mpeg4Url,
                                         String thumbUrl)
        Parameters:
        mpeg4Url - A valid URL for the MP4 file. File size must not exceed 1MB
        thumbUrl - URL of the static thumbnail (jpeg or gif) for the result
      • InlineQueryResultMpeg4Gif

        public InlineQueryResultMpeg4Gif​(String mpeg4Url,
                                         String thumbUrl,
                                         Integer mpeg4Width,
                                         Integer mpeg4Height,
                                         String title,
                                         String caption,
                                         ParseMode parseMode,
                                         InlineKeyboardMarkup replyMarkup,
                                         InputMessageContent inputMessageContent)
        Parameters:
        mpeg4Url - A valid URL for the MP4 file. File size must not exceed 1MB
        thumbUrl - URL of the static thumbnail (jpeg or gif) for the result
        mpeg4Width - Optional. Video width
        mpeg4Height - Optional. Video height
        title - Optional. Title for the result
        caption - Optional. Caption of the MPEG-4 file to be sent, 0-200 characters
        parseMode - Optional. Send “Markdown”, if you want Telegram apps to show bold, italic and inline URLs in your bot's message.
        replyMarkup - Optional. Inline keyboard attached to the message
        inputMessageContent - Optional. Content of the message