Skip to content

GramIO API Reference / gramio/dist / TelegramInlineQueryResultGif

Interface: TelegramInlineQueryResultGif

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

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:6701
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:6709
gif_duration?numberOptional. Duration of the GIF in seconds@gramio/types/out/objects.d.ts:6685
gif_height?numberOptional. Height of the GIF@gramio/types/out/objects.d.ts:6681
gif_urlstringA valid URL for the GIF file@gramio/types/out/objects.d.ts:6673
gif_width?numberOptional. Width of the GIF@gramio/types/out/objects.d.ts:6677
idstringUnique identifier for this result, 1-64 bytes@gramio/types/out/objects.d.ts:6669
input_message_content?TelegramInputMessageContentOptional. Content of the message to be sent instead of the GIF animation@gramio/types/out/objects.d.ts:6723
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:6705
reply_markup?TelegramInlineKeyboardMarkup | { toJSON: TelegramInlineKeyboardMarkup; }Optional. Inline keyboard attached to the message@gramio/types/out/objects.d.ts:6717
show_caption_above_media?booleanOptional. Pass True, if the caption must be shown above the message media@gramio/types/out/objects.d.ts:6713
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:6693
thumbnail_urlstringURL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result@gramio/types/out/objects.d.ts:6689
title?stringOptional. Title for the result@gramio/types/out/objects.d.ts:6697
type"gif"Type of the result, must be gif@gramio/types/out/objects.d.ts:6665