|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
A static profile photo in the .JPG format https://core.telegram.org/bots/api#inputprofilephotostatic. More...
#include <InputProfilePhoto.hpp>
Public Member Functions | |
| InputProfilePhotoStatic () | |
| InputProfilePhotoStatic (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::InputProfilePhoto | |
| InputProfilePhoto ()=default | |
| InputProfilePhoto (const nl::json &json) | |
| virtual | ~InputProfilePhoto ()=default |
Public Attributes | |
| std::string | photo |
| The static profile photo. Profile photos can't be reused and can only be uploaded as a new file, so you can pass “attach://<file_attach_name>” if the photo was uploaded using multipart/form-data. | |
Public Attributes inherited from tgbotxx::InputProfilePhoto | |
| std::string | type |
| Type of the profile photo. | |
A static profile photo in the .JPG format https://core.telegram.org/bots/api#inputprofilephotostatic.
Definition at line 36 of file InputProfilePhoto.hpp.
|
inline |
Definition at line 37 of file InputProfilePhoto.hpp.
|
inlineexplicit |
Definition at line 40 of file InputProfilePhoto.hpp.
|
inlineoverridevirtual |
Deserializes this object from JSON.
Reimplemented from tgbotxx::InputProfilePhoto.
Definition at line 57 of file InputProfilePhoto.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::InputProfilePhoto.
Definition at line 50 of file InputProfilePhoto.hpp.
| std::string tgbotxx::InputProfilePhotoStatic::photo |
The static profile photo. Profile photos can't be reused and can only be uploaded as a new file, so you can pass “attach://<file_attach_name>” if the photo was uploaded using multipart/form-data.
Definition at line 46 of file InputProfilePhoto.hpp.