Class InlineQueryResultGif


  • public class InlineQueryResultGif
    extends InlineQueryResult
    Represents a link to an animated GIF file. 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

      • InlineQueryResultGif

        public InlineQueryResultGif()
      • InlineQueryResultGif

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

        public InlineQueryResultGif​(String gifUrl,
                                    Integer gifWidth,
                                    Integer gifHeight,
                                    String thumbUrl,
                                    String title,
                                    String caption,
                                    ParseMode parseMode,
                                    InlineKeyboardMarkup replyMarkup,
                                    InputMessageContent inputMessageContent)
        Parameters:
        gifUrl - A valid URL for the GIF file. File size must not exceed 1MB
        gifWidth - Optional. Width of the GIF
        gifHeight - Optional. Height of the GIF
        thumbUrl - URL of the static thumbnail for the result (jpeg or gif)
        title - Optional. Title for the result
        caption - Optional. Caption of the GIF 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