telegram.inlinequeryresultmpeg4gif module¶
This module contains the classes that represent Telegram InlineQueryResultMpeg4Gif
-
class
telegram.inlinequeryresultmpeg4gif.InlineQueryResultMpeg4Gif(id, mpeg4_url, thumb_url, mpeg4_width=None, mpeg4_height=None, title=None, caption=None, reply_markup=None, input_message_content=None, **kwargs)¶ Bases:
telegram.inlinequeryresult.InlineQueryResultRepresents 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 use input_message_content to send a message with the specified content instead of the animation.
-
mpeg4_url¶ str – A valid URL for the MP4 file. File size must not exceed 1MB.
-
thumb_url¶ str – URL of the static thumbnail (jpeg or gif) for the result.
-
mpeg4_width¶ Optional[int] – Video width.
-
mpeg4_height¶ Optional[int] – Video height.
-
title¶ Optional[str] – Title for the result.
-
caption¶ Optional[str] – Caption of the MPEG-4 file to be sent, 0-200 characters.
-
reply_markup¶ Optional[
telegram.InlineKeyboardMarkup] – Inline keyboard attached to the message.
-
input_message_content¶ Optional[
telegram.InputMessageContent] – Content of the message to be sent instead of the video animation.
Parameters: - mpeg4_url (str) – A valid URL for the MP4 file. File size must not exceed 1MB.
- thumb_url (str) – URL of the static thumbnail (jpeg or gif) for the result.
- mpeg4_width (Optional[int]) – Video width.
- mpeg4_height (Optional[int]) – Video height.
- title (Optional[str]) – Title for the result.
- caption (Optional[str]) – Caption of the MPEG-4 file to be sent, 0-200 characters.
- reply_markup (Optional[
telegram.InlineKeyboardMarkup]) – Inline keyboard attached to the message. - input_message_content (Optional[
telegram.InputMessageContent]) – Content of the message to be sent instead of the video animation. - **kwargs (dict) – Arbitrary keyword arguments.
-
static
de_json(data, bot)¶
-