|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
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. https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif. More...
#include <InlineQueryResult.hpp>
Public Member Functions | |
| InlineQueryResultMpeg4Gif () | |
| InlineQueryResultMpeg4Gif (const nl::json &json) | |
| nl::json | toJson () const override |
| void | fromJson (const nl::json &json) override |
Public Member Functions inherited from tgbotxx::InlineQueryResult | |
| InlineQueryResult ()=default | |
| InlineQueryResult (const nl::json &json) | |
| virtual | ~InlineQueryResult ()=default |
Public Attributes | |
| std::string | mpeg4Url |
| A valid URL for the MPEG4 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 in seconds. | |
| 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 formatting options for more details. | |
| std::vector< Ptr< MessageEntity > > | captionEntities |
| Optional. List of special entities that appear in the caption, which can be specified instead of parseMode. | |
| Ptr< InputMessageContent > | inputMessageContent |
| Optional. Content of the message to be sent instead of the video animation. | |
Public Attributes inherited from tgbotxx::InlineQueryResult | |
| std::string | type |
| Type of the result. | |
| std::string | id |
| Unique identifier for this result, 1-64 bytes. | |
| Ptr< InlineKeyboardMarkup > | replyMarkup |
| Optional. Inline keyboard attached to the message. | |
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. https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif.
Definition at line 280 of file InlineQueryResult.hpp.
|
inline |
Definition at line 281 of file InlineQueryResult.hpp.
|
inlineexplicit |
Definition at line 284 of file InlineQueryResult.hpp.
|
inlineoverridevirtual |
Reimplemented from tgbotxx::InlineQueryResult.
Definition at line 337 of file InlineQueryResult.hpp.
|
inlineoverridevirtual |
Reimplemented from tgbotxx::InlineQueryResult.
Definition at line 321 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultMpeg4Gif::caption |
Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing.
Definition at line 310 of file InlineQueryResult.hpp.
| std::vector<Ptr<MessageEntity> > tgbotxx::InlineQueryResultMpeg4Gif::captionEntities |
Optional. List of special entities that appear in the caption, which can be specified instead of parseMode.
Definition at line 316 of file InlineQueryResult.hpp.
| Ptr<InputMessageContent> tgbotxx::InlineQueryResultMpeg4Gif::inputMessageContent |
Optional. Content of the message to be sent instead of the video animation.
Definition at line 319 of file InlineQueryResult.hpp.
| std::int32_t tgbotxx::InlineQueryResultMpeg4Gif::mpeg4Duration {} |
Optional. Video duration in seconds.
Definition at line 298 of file InlineQueryResult.hpp.
| std::int32_t tgbotxx::InlineQueryResultMpeg4Gif::mpeg4Height {} |
Optional. Video height.
Definition at line 295 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultMpeg4Gif::mpeg4Url |
A valid URL for the MPEG4 file. File size must not exceed 1MB.
Definition at line 289 of file InlineQueryResult.hpp.
| std::int32_t tgbotxx::InlineQueryResultMpeg4Gif::mpeg4Width {} |
Optional. Video width.
Definition at line 292 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultMpeg4Gif::parseMode |
Optional. Mode for parsing entities in the caption. See formatting options for more details.
Definition at line 313 of file InlineQueryResult.hpp.
| std::string tgbotxx::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 304 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultMpeg4Gif::thumbnailUrl |
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
Definition at line 301 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultMpeg4Gif::title |
Optional. Title for the result.
Definition at line 307 of file InlineQueryResult.hpp.