Class InlineQueryResultGif
- java.lang.Object
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResult
-
- com.cadiducho.telegrambotapi.inline.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.
-
-
Field Summary
-
Fields inherited from class com.cadiducho.telegrambotapi.inline.InlineQueryResult
id, inputMessageContent, replyMarkup, type
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultGif()
InlineQueryResultGif(String gifUrl, Integer gifWidth, Integer gifHeight, String thumbUrl, String title, String caption, ParseMode parseMode, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
InlineQueryResultGif(String gifUrl, String thumbUrl)
-
-
-
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 1MBthumbUrl
- 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 1MBgifWidth
- Optional. Width of the GIFgifHeight
- Optional. Height of the GIFthumbUrl
- URL of the static thumbnail for the result (jpeg or gif)title
- Optional. Title for the resultcaption
- Optional. Caption of the GIF file to be sent, 0-200 charactersparseMode
- 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 messageinputMessageContent
- Optional. Content of the message
-
-