telegram.inlinequeryresultcachedgif module

This module contains the classes that represent Telegram InlineQueryResultCachedGif

class telegram.inlinequeryresultcachedgif.InlineQueryResultCachedGif(id, gif_file_id, title=None, caption=None, reply_markup=None, input_message_content=None, **kwargs)

Bases: telegram.inlinequeryresult.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 an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation.

gif_file_id

str – A valid file identifier for the GIF file.

title

Optional[str] – Title for the result.

caption

Optional[str] – Caption of the GIF 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 GIF animation.

Parameters:
static de_json(data, bot)