tgbot-cpp
Loading...
Searching...
No Matches
TgBot::InlineQueryResultCachedGif Struct Reference

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. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<InlineQueryResultCachedGif>

Public Attributes

std::string type { TYPE }
 Type of the result, must be gif.
std::string id { }
 Unique identifier for this result, 1-64 bytes.
std::string gifFileId { }
 A valid file identifier for the GIF file.
std::optional< std::string > title { }
 Optional. Title for the result.
std::optional< std::string > caption { }
 Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing.
std::optional< std::string > parseMode { }
 Optional. Mode for parsing entities in the caption. See formatting options for more details.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities { }
 Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.
std::optional< bool > showCaptionAboveMedia { }
 Optional. Pass True if the caption must be shown above the message media.
std::shared_ptr< InlineKeyboardMarkupreplyMarkup { }
 Optional. Inline keyboard attached to the message.
std::shared_ptr< InputMessageContentinputMessageContent { }
 Optional. Content of the message to be sent instead of the GIF animation.

Static Public Attributes

static TGBOT_API const std::string TYPE

Detailed Description

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.

Definition at line 4781 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 4782 of file Types.h.

Member Data Documentation

◆ caption

std::optional<std::string> TgBot::InlineQueryResultCachedGif::caption { }

Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing.

Definition at line 4809 of file Types.h.

◆ captionEntities

std::optional<std::vector<std::shared_ptr<MessageEntity> > > TgBot::InlineQueryResultCachedGif::captionEntities { }

Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.

Definition at line 4821 of file Types.h.

◆ gifFileId

std::string TgBot::InlineQueryResultCachedGif::gifFileId { }

A valid file identifier for the GIF file.

Definition at line 4799 of file Types.h.

◆ id

std::string TgBot::InlineQueryResultCachedGif::id { }

Unique identifier for this result, 1-64 bytes.

Definition at line 4794 of file Types.h.

◆ inputMessageContent

std::shared_ptr<InputMessageContent> TgBot::InlineQueryResultCachedGif::inputMessageContent { }

Optional. Content of the message to be sent instead of the GIF animation.

Definition at line 4836 of file Types.h.

◆ parseMode

std::optional<std::string> TgBot::InlineQueryResultCachedGif::parseMode { }

Optional. Mode for parsing entities in the caption. See formatting options for more details.

Definition at line 4815 of file Types.h.

◆ replyMarkup

std::shared_ptr<InlineKeyboardMarkup> TgBot::InlineQueryResultCachedGif::replyMarkup { }

Optional. Inline keyboard attached to the message.

Definition at line 4831 of file Types.h.

◆ showCaptionAboveMedia

std::optional<bool> TgBot::InlineQueryResultCachedGif::showCaptionAboveMedia { }

Optional. Pass True if the caption must be shown above the message media.

Definition at line 4826 of file Types.h.

◆ title

std::optional<std::string> TgBot::InlineQueryResultCachedGif::title { }

Optional. Title for the result.

Definition at line 4804 of file Types.h.

◆ TYPE

TGBOT_API const std::string TgBot::InlineQueryResultCachedGif::TYPE
static

Definition at line 4784 of file Types.h.

◆ type

std::string TgBot::InlineQueryResultCachedGif::type { TYPE }

Type of the result, must be gif.

Definition at line 4789 of file Types.h.


The documentation for this struct was generated from the following file: