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

Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 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. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<InlineQueryResultMpeg4Gif>

Public Attributes

std::string type { TYPE }
 Type of the result, must be mpeg4_gif.
std::string id { }
 Unique identifier for this result, 1-64 bytes.
std::string mpeg4Url { }
 A valid URL for the MPEG4 file.
std::optional< std::int32_t > mpeg4Width { }
 Optional. Video width.
std::optional< std::int32_t > mpeg4Height { }
 Optional. Video height.
std::optional< std::int32_t > mpeg4Duration { }
 Optional. Video duration in seconds.
std::string thumbnailUrl { }
 URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
std::optional< std::string > thumbnailMimeType { }
 Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”.
std::optional< std::string > title { }
 Optional. Title for the result.
std::optional< std::string > caption { }
 Optional. Caption of the MPEG-4 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 video animation.

Static Public Attributes

static TGBOT_API const std::string TYPE

Detailed Description

Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 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.

Definition at line 5536 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 5537 of file Types.h.

Member Data Documentation

◆ caption

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

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

Definition at line 5591 of file Types.h.

◆ captionEntities

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

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

Definition at line 5603 of file Types.h.

◆ id

std::string TgBot::InlineQueryResultMpeg4Gif::id { }

Unique identifier for this result, 1-64 bytes.

Definition at line 5549 of file Types.h.

◆ inputMessageContent

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

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

Definition at line 5618 of file Types.h.

◆ mpeg4Duration

std::optional<std::int32_t> TgBot::InlineQueryResultMpeg4Gif::mpeg4Duration { }

Optional. Video duration in seconds.

Definition at line 5569 of file Types.h.

◆ mpeg4Height

std::optional<std::int32_t> TgBot::InlineQueryResultMpeg4Gif::mpeg4Height { }

Optional. Video height.

Definition at line 5564 of file Types.h.

◆ mpeg4Url

std::string TgBot::InlineQueryResultMpeg4Gif::mpeg4Url { }

A valid URL for the MPEG4 file.

Definition at line 5554 of file Types.h.

◆ mpeg4Width

std::optional<std::int32_t> TgBot::InlineQueryResultMpeg4Gif::mpeg4Width { }

Optional. Video width.

Definition at line 5559 of file Types.h.

◆ parseMode

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

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

Definition at line 5597 of file Types.h.

◆ replyMarkup

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

Optional. Inline keyboard attached to the message.

Definition at line 5613 of file Types.h.

◆ showCaptionAboveMedia

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

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

Definition at line 5608 of file Types.h.

◆ thumbnailMimeType

std::optional<std::string> TgBot::InlineQueryResultMpeg4Gif::thumbnailMimeType { }

Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”.

Definition at line 5580 of file Types.h.

◆ thumbnailUrl

std::string TgBot::InlineQueryResultMpeg4Gif::thumbnailUrl { }

URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.

Definition at line 5574 of file Types.h.

◆ title

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

Optional. Title for the result.

Definition at line 5585 of file Types.h.

◆ TYPE

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

Definition at line 5539 of file Types.h.

◆ type

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

Type of the result, must be mpeg4_gif.

Definition at line 5544 of file Types.h.


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