Class InlineQueryResultCachedGif
- java.lang.Object
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResult
-
- com.cadiducho.telegrambotapi.inline.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.
-
-
Field Summary
-
Fields inherited from class com.cadiducho.telegrambotapi.inline.InlineQueryResult
id, inputMessageContent, replyMarkup, type
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultCachedGif()
InlineQueryResultCachedGif(String gifFileId)
InlineQueryResultCachedGif(String gifFileId, String title, String caption, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
-
-
-
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 filetitle
- Optional. Title for the resultcaption
- Optional. Caption of the GIF file to be sent, 0-200 charactersreplyMarkup
- Optional. Inline keyboard attached to the messageinputMessageContent
- Optional. Content of the message
-
-