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