InlineQueryResultCachedGif
class InlineQueryResultCachedGif implements InlineQueryResultInterface
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.
Methods
No description
Type of the result, must be gif.
Unique identifier for this result, 1-64 bytes.
A valid file identifier for the GIF file.
Optional. Title for the result.
Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing.
Optional. Mode for parsing entities in the caption. See formatting options for more details.
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.
Optional. Inline keyboard attached to the message.
Optional. Content of the message to be sent instead of the GIF animation.
Details
at line 21
__construct(string $type, string $id, string $gif_file_id, string|null $title = null, string|null $caption = null, string|null $parse_mode = null, MessageEntity[]|null $caption_entities = null, InlineKeyboardMarkup|null $reply_markup = null, InputMessageContentInterface|null $input_message_content = null)
No description
at line 37
string
getType()
Type of the result, must be gif.
at line 45
string
getId()
Unique identifier for this result, 1-64 bytes.
at line 53
string
getGifFileId()
A valid file identifier for the GIF file.
at line 61
string|null
getTitle()
Optional. Title for the result.
at line 69
string|null
getCaption()
Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing.
at line 77
string|null
getParseMode()
Optional. Mode for parsing entities in the caption. See formatting options for more details.
at line 87
array|null
getCaptionEntities()
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.
at line 95
InlineKeyboardMarkup|null
getReplyMarkup()
Optional. Inline keyboard attached to the message.
at line 103
InputMessageContentInterface|null
getInputMessageContent()
Optional. Content of the message to be sent instead of the GIF animation.