Skip to content

GramIO API Reference / gramio/dist / TelegramInlineQueryResultGif

Interface: TelegramInlineQueryResultGif

Defined in: @gramio/types/out/objects.d.ts:6461

Represents a link to an animated GIF file. By default, this animated GIF 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.

Documentation

Properties

PropertyTypeDescriptionDefined in
caption?string | { toString: string; }Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing@gramio/types/out/objects.d.ts:6501
caption_entities?TelegramMessageEntity[]Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode@gramio/types/out/objects.d.ts:6509
gif_duration?numberOptional. Duration of the GIF in seconds@gramio/types/out/objects.d.ts:6485
gif_height?numberOptional. Height of the GIF@gramio/types/out/objects.d.ts:6481
gif_urlstringA valid URL for the GIF file@gramio/types/out/objects.d.ts:6473
gif_width?numberOptional. Width of the GIF@gramio/types/out/objects.d.ts:6477
idstringUnique identifier for this result, 1-64 bytes@gramio/types/out/objects.d.ts:6469
input_message_content?TelegramInputMessageContentOptional. Content of the message to be sent instead of the GIF animation@gramio/types/out/objects.d.ts:6523
parse_mode?"HTML" | "MarkdownV2" | "Markdown"Optional. Mode for parsing entities in the caption. See formatting options for more details.@gramio/types/out/objects.d.ts:6505
reply_markup?TelegramInlineKeyboardMarkup | { toJSON: TelegramInlineKeyboardMarkup; }Optional. Inline keyboard attached to the message@gramio/types/out/objects.d.ts:6517
show_caption_above_media?booleanOptional. Pass True, if the caption must be shown above the message media@gramio/types/out/objects.d.ts:6513
thumbnail_mime_type?TelegramInlineQueryResultGifThumbnailMimeTypeOptional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”@gramio/types/out/objects.d.ts:6493
thumbnail_urlstringURL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result@gramio/types/out/objects.d.ts:6489
title?stringOptional. Title for the result@gramio/types/out/objects.d.ts:6497
type"gif"Type of the result, must be gif@gramio/types/out/objects.d.ts:6465