tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object represents the content of a media message to be sent. It should be one of: More...
#include <InputMedia.hpp>
Public Member Functions | |
InputMedia ()=default | |
InputMedia (const nl::json &json) | |
virtual nl::json | toJson () const |
Serializes this object to JSON. More... | |
virtual void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
std::string | type |
Type of the result. More... | |
std::variant< cpr::File, std::string > | media {""} |
File to send. More... | |
std::string | caption |
Optional. Caption of the media to be sent, 0-1024 characters after entities parsing. More... | |
std::string | parseMode |
Optional. Mode for parsing entities in the media caption. See https://core.telegram.org/bots/api#formatting-options for more details. More... | |
std::vector< Ptr< MessageEntity > > | captionEntities |
Optional. List of special entities that appear in the caption, which can be specified instead of parseMode. More... | |
This object represents the content of a media message to be sent. It should be one of:
Definition at line 13 of file InputMedia.hpp.
|
default |
|
inlineexplicit |
Definition at line 15 of file InputMedia.hpp.
|
inlinevirtual |
Deserializes this object from JSON.
Reimplemented in tgbotxx::InputMediaVideo, tgbotxx::InputMediaPhoto, tgbotxx::InputMediaAudio, tgbotxx::InputMediaDocument, and tgbotxx::InputMediaAnimation.
Definition at line 58 of file InputMedia.hpp.
|
inlinevirtual |
Serializes this object to JSON.
Reimplemented in tgbotxx::InputMediaVideo, tgbotxx::InputMediaPhoto, tgbotxx::InputMediaAudio, tgbotxx::InputMediaDocument, and tgbotxx::InputMediaAnimation.
Definition at line 43 of file InputMedia.hpp.
std::string tgbotxx::InputMedia::caption |
Optional. Caption of the media to be sent, 0-1024 characters after entities parsing.
Definition at line 31 of file InputMedia.hpp.
std::vector<Ptr<MessageEntity> > tgbotxx::InputMedia::captionEntities |
Optional. List of special entities that appear in the caption, which can be specified instead of parseMode.
Definition at line 38 of file InputMedia.hpp.
std::variant<cpr::File, std::string> tgbotxx::InputMedia::media {""} |
File to send.
Definition at line 28 of file InputMedia.hpp.
std::string tgbotxx::InputMedia::parseMode |
Optional. Mode for parsing entities in the media caption. See https://core.telegram.org/bots/api#formatting-options for more details.
Definition at line 35 of file InputMedia.hpp.
std::string tgbotxx::InputMedia::type |
Type of the result.
Definition at line 20 of file InputMedia.hpp.