Class InlineQueryResultMpeg4Gif
- java.lang.Object
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResult
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResultMpeg4Gif
-
public class InlineQueryResultMpeg4Gif extends InlineQueryResult
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). 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 InlineQueryResultMpeg4Gif()
InlineQueryResultMpeg4Gif(String mpeg4Url, String thumbUrl)
InlineQueryResultMpeg4Gif(String mpeg4Url, String thumbUrl, Integer mpeg4Width, Integer mpeg4Height, String title, String caption, ParseMode parseMode, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
-
-
-
Constructor Detail
-
InlineQueryResultMpeg4Gif
public InlineQueryResultMpeg4Gif()
-
InlineQueryResultMpeg4Gif
public InlineQueryResultMpeg4Gif(String mpeg4Url, String thumbUrl)
- Parameters:
mpeg4Url
- A valid URL for the MP4 file. File size must not exceed 1MBthumbUrl
- URL of the static thumbnail (jpeg or gif) for the result
-
InlineQueryResultMpeg4Gif
public InlineQueryResultMpeg4Gif(String mpeg4Url, String thumbUrl, Integer mpeg4Width, Integer mpeg4Height, String title, String caption, ParseMode parseMode, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
- Parameters:
mpeg4Url
- A valid URL for the MP4 file. File size must not exceed 1MBthumbUrl
- URL of the static thumbnail (jpeg or gif) for the resultmpeg4Width
- Optional. Video widthmpeg4Height
- Optional. Video heighttitle
- Optional. Title for the resultcaption
- Optional. Caption of the MPEG-4 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
-
-