|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Represents a photo to be sent. https://core.telegram.org/bots/api#inputmediaphoto. More...
#include <InputMedia.hpp>
Public Member Functions | |
| InputMediaPhoto () | |
| InputMediaPhoto (const nl::json &json) | |
| nl::json | toJson () const override |
| Serializes this object to JSON. | |
| void | fromJson (const nl::json &json) override |
| Deserializes this object from JSON. | |
Public Member Functions inherited from tgbotxx::InputMedia | |
| InputMedia ()=default | |
| InputMedia (const nl::json &json) | |
| virtual | ~InputMedia ()=default |
Public Attributes | |
| bool | hasSpoiler {} |
| Optional. Pass True if the photo needs to be covered with a spoiler animation. | |
Public Attributes inherited from tgbotxx::InputMedia | |
| 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. | |
Represents a photo to be sent. https://core.telegram.org/bots/api#inputmediaphoto.
Definition at line 207 of file InputMedia.hpp.
|
inline |
Definition at line 208 of file InputMedia.hpp.
|
inlineexplicit |
Definition at line 211 of file InputMedia.hpp.
|
inlineoverridevirtual |
Deserializes this object from JSON.
Reimplemented from tgbotxx::InputMedia.
Definition at line 223 of file InputMedia.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::InputMedia.
Definition at line 218 of file InputMedia.hpp.
| bool tgbotxx::InputMediaPhoto::hasSpoiler {} |
Optional. Pass True if the photo needs to be covered with a spoiler animation.
Definition at line 216 of file InputMedia.hpp.