tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::InlineQueryResultCachedVideo Struct Reference

Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. More...

#include <InlineQueryResult.hpp>

Inheritance diagram for tgbotxx::InlineQueryResultCachedVideo:
tgbotxx::InlineQueryResult

Public Member Functions

 InlineQueryResultCachedVideo ()
 
 InlineQueryResultCachedVideo (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)
 

Public Attributes

std::string videoFileId
 A valid file identifier for the video file. More...
 
std::string title
 Title for the result. More...
 
std::string description
 Optional. Short description of the result. More...
 
std::string caption
 Optional. Caption of the video to be sent, 0-1024 characters after entities parsing. More...
 
std::string parseMode
 Optional. Mode for parsing entities in the document caption. See formatting options for more details. More...
 
std::vector< Ptr< MessageEntity > > captionEntities
 Optional. List of special entities that appear in the video caption, which can be specified instead of parseMode. More...
 
Ptr< InputMessageContentinputMessageContent
 Optional. Content of the message to be sent instead of the video. More...
 
- Public Attributes inherited from tgbotxx::InlineQueryResult
std::string type
 Type of the result. More...
 
std::string id
 Unique identifier for this result, 1-64 bytes. More...
 
Ptr< InlineKeyboardMarkupreplyMarkup
 Optional. Inline keyboard attached to the message. More...
 

Detailed Description

Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption.

Definition at line 1144 of file InlineQueryResult.hpp.

Constructor & Destructor Documentation

◆ InlineQueryResultCachedVideo() [1/2]

tgbotxx::InlineQueryResultCachedVideo::InlineQueryResultCachedVideo ( )
inline

Definition at line 1145 of file InlineQueryResult.hpp.

◆ InlineQueryResultCachedVideo() [2/2]

tgbotxx::InlineQueryResultCachedVideo::InlineQueryResultCachedVideo ( const nl::json &  json)
inlineexplicit

Definition at line 1148 of file InlineQueryResult.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::InlineQueryResultCachedVideo::fromJson ( const nl::json &  json)
inlineoverridevirtual

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 1186 of file InlineQueryResult.hpp.

◆ toJson()

nl::json tgbotxx::InlineQueryResultCachedVideo::toJson ( ) const
inlineoverridevirtual

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 1174 of file InlineQueryResult.hpp.

Member Data Documentation

◆ caption

std::string tgbotxx::InlineQueryResultCachedVideo::caption

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

Definition at line 1162 of file InlineQueryResult.hpp.

◆ captionEntities

std::vector<Ptr<MessageEntity> > tgbotxx::InlineQueryResultCachedVideo::captionEntities

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

Definition at line 1168 of file InlineQueryResult.hpp.

◆ description

std::string tgbotxx::InlineQueryResultCachedVideo::description

Optional. Short description of the result.

Definition at line 1159 of file InlineQueryResult.hpp.

◆ inputMessageContent

Ptr<InputMessageContent> tgbotxx::InlineQueryResultCachedVideo::inputMessageContent

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

Definition at line 1171 of file InlineQueryResult.hpp.

◆ parseMode

std::string tgbotxx::InlineQueryResultCachedVideo::parseMode

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

Definition at line 1165 of file InlineQueryResult.hpp.

◆ title

std::string tgbotxx::InlineQueryResultCachedVideo::title

Title for the result.

Definition at line 1156 of file InlineQueryResult.hpp.

◆ videoFileId

std::string tgbotxx::InlineQueryResultCachedVideo::videoFileId

A valid file identifier for the video file.

Definition at line 1153 of file InlineQueryResult.hpp.


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