Class InlineQueryResultCachedMpeg4Gif


  • public class InlineQueryResultCachedMpeg4Gif
    extends InlineQueryResult
    Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. 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

      • InlineQueryResultCachedMpeg4Gif

        public InlineQueryResultCachedMpeg4Gif()
      • InlineQueryResultCachedMpeg4Gif

        public InlineQueryResultCachedMpeg4Gif​(String mpeg4FileId)
        Parameters:
        mpeg4FileId - A valid file identifier for the MP4 file
      • InlineQueryResultCachedMpeg4Gif

        public InlineQueryResultCachedMpeg4Gif​(String mpeg4FileId,
                                               String title,
                                               String caption,
                                               InlineKeyboardMarkup replyMarkup,
                                               InputMessageContent inputMessageContent)
        Parameters:
        mpeg4FileId - A valid URL for the MP4 file. File size must not exceed 1MB
        title - Optional. Title for the result
        caption - Optional. Caption of the MPEG-4 file to be sent, 0-200 characters
        replyMarkup - Optional. Inline keyboard attached to the message
        inputMessageContent - Optional. Content of the message