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.
Properties
| Property | Type | Description | Defined 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? | number | Optional. Duration of the GIF in seconds | @gramio/types/out/objects.d.ts:6485 |
gif_height? | number | Optional. Height of the GIF | @gramio/types/out/objects.d.ts:6481 |
gif_url | string | A valid URL for the GIF file | @gramio/types/out/objects.d.ts:6473 |
gif_width? | number | Optional. Width of the GIF | @gramio/types/out/objects.d.ts:6477 |
id | string | Unique identifier for this result, 1-64 bytes | @gramio/types/out/objects.d.ts:6469 |
input_message_content? | TelegramInputMessageContent | Optional. 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? | boolean | Optional. Pass True, if the caption must be shown above the message media | @gramio/types/out/objects.d.ts:6513 |
thumbnail_mime_type? | TelegramInlineQueryResultGifThumbnailMimeType | Optional. 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_url | string | URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result | @gramio/types/out/objects.d.ts:6489 |
title? | string | Optional. 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 |