|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the video. https://core.telegram.org/bots/api#inlinequeryresultvideo. More...
#include <InlineQueryResult.hpp>
Public Member Functions | |
| InlineQueryResultVideo () | |
| InlineQueryResultVideo (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 | videoUrl |
| A valid URL for the embedded video player or video file. | |
| std::string | mimeType |
| MIME type of the content of the video URL, “text/html” or “video/mp4” | |
| std::string | title |
| Optional. Title for the result. | |
| std::string | thumbnailUrl |
| URL of the thumbnail (JPEG only) for the video. | |
| std::string | caption |
| Optional. Caption of the video to be sent, 0-1024 characters after entities parsing. | |
| std::string | parseMode |
| Optional. Mode for parsing entities in the video 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. | |
| std::int32_t | videoWidth {} |
| Optional. Video width. | |
| std::int32_t | videoHeight {} |
| Optional. Video height. | |
| std::int32_t | videoDuration {} |
| Optional. Video duration in seconds. | |
| std::string | description |
| Optional. Short description of the result. | |
| Ptr< InputMessageContent > | inputMessageContent |
| Optional. Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video). | |
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 page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the video. https://core.telegram.org/bots/api#inlinequeryresultvideo.
Definition at line 359 of file InlineQueryResult.hpp.
|
inline |
Definition at line 360 of file InlineQueryResult.hpp.
|
inlineexplicit |
Definition at line 363 of file InlineQueryResult.hpp.
|
inlineoverridevirtual |
Reimplemented from tgbotxx::InlineQueryResult.
Definition at line 421 of file InlineQueryResult.hpp.
|
inlineoverridevirtual |
Reimplemented from tgbotxx::InlineQueryResult.
Definition at line 404 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultVideo::caption |
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing.
Definition at line 380 of file InlineQueryResult.hpp.
| std::vector<Ptr<MessageEntity> > tgbotxx::InlineQueryResultVideo::captionEntities |
Optional. List of special entities that appear in the caption, which can be specified instead of parseMode.
Definition at line 386 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultVideo::description |
Optional. Short description of the result.
Definition at line 398 of file InlineQueryResult.hpp.
| Ptr<InputMessageContent> tgbotxx::InlineQueryResultVideo::inputMessageContent |
Optional. Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video).
Definition at line 402 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultVideo::mimeType |
MIME type of the content of the video URL, “text/html” or “video/mp4”
Definition at line 371 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultVideo::parseMode |
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
Definition at line 383 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultVideo::thumbnailUrl |
URL of the thumbnail (JPEG only) for the video.
Definition at line 377 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultVideo::title |
Optional. Title for the result.
Definition at line 374 of file InlineQueryResult.hpp.
| std::int32_t tgbotxx::InlineQueryResultVideo::videoDuration {} |
Optional. Video duration in seconds.
Definition at line 395 of file InlineQueryResult.hpp.
| std::int32_t tgbotxx::InlineQueryResultVideo::videoHeight {} |
Optional. Video height.
Definition at line 392 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultVideo::videoUrl |
A valid URL for the embedded video player or video file.
Definition at line 368 of file InlineQueryResult.hpp.
| std::int32_t tgbotxx::InlineQueryResultVideo::videoWidth {} |
Optional. Video width.
Definition at line 389 of file InlineQueryResult.hpp.