|
tgbotxx 1.1.9.2
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 | ~InputMedia ()=default |
| virtual nl::json | toJson () const |
| Serializes this object to JSON. | |
| virtual void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| std::string | type |
| Type of the result. | |
| std::variant< cpr::File, std::string > | media {""} |
| File to send. | |
| std::string | caption |
| Optional. Caption of the media to be sent, 0-1024 characters after entities parsing. | |
| std::string | parseMode |
| Optional. Mode for parsing entities in the media caption. See https://core.telegram.org/bots/api#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. | |
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.
|
virtualdefault |
|
inlinevirtual |
Deserializes this object from JSON.
Reimplemented in tgbotxx::InputMediaAnimation, tgbotxx::InputMediaDocument, tgbotxx::InputMediaAudio, tgbotxx::InputMediaPhoto, and tgbotxx::InputMediaVideo.
Definition at line 59 of file InputMedia.hpp.
|
inlinevirtual |
Serializes this object to JSON.
Reimplemented in tgbotxx::InputMediaAnimation, tgbotxx::InputMediaDocument, tgbotxx::InputMediaAudio, tgbotxx::InputMediaPhoto, and tgbotxx::InputMediaVideo.
Definition at line 44 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 32 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 39 of file InputMedia.hpp.
| std::variant<cpr::File, std::string> tgbotxx::InputMedia::media {""} |
File to send.
Definition at line 29 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 36 of file InputMedia.hpp.
| std::string tgbotxx::InputMedia::type |
Type of the result.
Definition at line 21 of file InputMedia.hpp.