tgbot-cpp
|
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 inputMessageContent to send a message with the specified content instead of the animation. More...
#include <InlineQueryResultMpeg4Gif.h>
Public Types | |
typedef std::shared_ptr< InlineQueryResultMpeg4Gif > | Ptr |
Public Types inherited from TgBot::InlineQueryResult | |
typedef std::shared_ptr< InlineQueryResult > | Ptr |
Public Member Functions | |
InlineQueryResultMpeg4Gif () | |
Public Member Functions inherited from TgBot::InlineQueryResult | |
InlineQueryResult () | |
virtual | ~InlineQueryResult () |
Public Attributes | |
std::string | mpeg4Url |
A valid URL for the MP4 file. File size must not exceed 1MB. | |
std::int32_t | mpeg4Width |
Optional. Video width. | |
std::int32_t | mpeg4Height |
Optional. Video height. | |
std::int32_t | mpeg4Duration |
Optional. Video duration. | |
std::string | thumbnailUrl |
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result. | |
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::string | title |
Optional. Title for the result. | |
std::string | caption |
Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing. | |
std::string | parseMode |
Optional. Mode for parsing entities in the caption. See https://core.telegram.org/bots/api#formatting-options for more details. | |
std::vector< MessageEntity::Ptr > | captionEntities |
Optional. List of special entities that appear in the caption, which can be specified instead of parseMode. | |
InputMessageContent::Ptr | inputMessageContent |
Optional. Content of the message to be sent instead of the video animation. | |
Public Attributes inherited from TgBot::InlineQueryResult | |
std::string | type |
Type of the result. | |
std::string | id |
Unique identifier for this result, 1-64 bytes. | |
InlineKeyboardMarkup::Ptr | replyMarkup |
Optional. Inline keyboard attached to the message. | |
Static Public Attributes | |
static const std::string | TYPE |
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 inputMessageContent to send a message with the specified content instead of the animation.
Definition at line 22 of file InlineQueryResultMpeg4Gif.h.
typedef std::shared_ptr<InlineQueryResultMpeg4Gif> TgBot::InlineQueryResultMpeg4Gif::Ptr |
Definition at line 26 of file InlineQueryResultMpeg4Gif.h.
|
inline |
Definition at line 28 of file InlineQueryResultMpeg4Gif.h.
std::string TgBot::InlineQueryResultMpeg4Gif::caption |
Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing.
Definition at line 72 of file InlineQueryResultMpeg4Gif.h.
std::vector<MessageEntity::Ptr> TgBot::InlineQueryResultMpeg4Gif::captionEntities |
Optional. List of special entities that appear in the caption, which can be specified instead of parseMode.
Definition at line 83 of file InlineQueryResultMpeg4Gif.h.
InputMessageContent::Ptr TgBot::InlineQueryResultMpeg4Gif::inputMessageContent |
Optional. Content of the message to be sent instead of the video animation.
Definition at line 88 of file InlineQueryResultMpeg4Gif.h.
std::int32_t TgBot::InlineQueryResultMpeg4Gif::mpeg4Duration |
Optional. Video duration.
Definition at line 51 of file InlineQueryResultMpeg4Gif.h.
std::int32_t TgBot::InlineQueryResultMpeg4Gif::mpeg4Height |
Optional. Video height.
Definition at line 46 of file InlineQueryResultMpeg4Gif.h.
std::string TgBot::InlineQueryResultMpeg4Gif::mpeg4Url |
A valid URL for the MP4 file. File size must not exceed 1MB.
Definition at line 36 of file InlineQueryResultMpeg4Gif.h.
std::int32_t TgBot::InlineQueryResultMpeg4Gif::mpeg4Width |
Optional. Video width.
Definition at line 41 of file InlineQueryResultMpeg4Gif.h.
std::string TgBot::InlineQueryResultMpeg4Gif::parseMode |
Optional. Mode for parsing entities in the caption. See https://core.telegram.org/bots/api#formatting-options for more details.
Definition at line 78 of file InlineQueryResultMpeg4Gif.h.
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 62 of file InlineQueryResultMpeg4Gif.h.
std::string TgBot::InlineQueryResultMpeg4Gif::thumbnailUrl |
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
Definition at line 56 of file InlineQueryResultMpeg4Gif.h.
std::string TgBot::InlineQueryResultMpeg4Gif::title |
Optional. Title for the result.
Definition at line 67 of file InlineQueryResultMpeg4Gif.h.
|
static |
Definition at line 24 of file InlineQueryResultMpeg4Gif.h.