Class InlineQueryResultCachedGif


  • public class InlineQueryResultCachedGif
    extends InlineQueryResult
    Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF 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

      • InlineQueryResultCachedGif

        public InlineQueryResultCachedGif()
      • InlineQueryResultCachedGif

        public InlineQueryResultCachedGif​(String gifFileId)
        Parameters:
        gifFileId - A valid file identifier for the GIF file
      • InlineQueryResultCachedGif

        public InlineQueryResultCachedGif​(String gifFileId,
                                          String title,
                                          String caption,
                                          InlineKeyboardMarkup replyMarkup,
                                          InputMessageContent inputMessageContent)
        Parameters:
        gifFileId - A valid file identifier for the GIF file
        title - Optional. Title for the result
        caption - Optional. Caption of the GIF file to be sent, 0-200 characters
        replyMarkup - Optional. Inline keyboard attached to the message
        inputMessageContent - Optional. Content of the message