|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
An animated profile photo in the MPEG4 format https://core.telegram.org/bots/api#inputprofilephotoanimated. More...
#include <InputProfilePhoto.hpp>
Public Member Functions | |
| InputProfilePhotoAnimated () | |
| InputProfilePhotoAnimated (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 | animation |
| The animated 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. | |
| double | mainFrameTimestamp {0.0} |
| Optional. Timestamp in seconds of the frame that will be used as the static profile photo. Defaults to 0.0. | |
Public Attributes inherited from tgbotxx::InputProfilePhoto | |
| std::string | type |
| Type of the profile photo. | |
An animated profile photo in the MPEG4 format https://core.telegram.org/bots/api#inputprofilephotoanimated.
Definition at line 65 of file InputProfilePhoto.hpp.
|
inline |
Definition at line 66 of file InputProfilePhoto.hpp.
|
inlineexplicit |
Definition at line 69 of file InputProfilePhoto.hpp.
|
inlineoverridevirtual |
Deserializes this object from JSON.
Reimplemented from tgbotxx::InputProfilePhoto.
Definition at line 90 of file InputProfilePhoto.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::InputProfilePhoto.
Definition at line 82 of file InputProfilePhoto.hpp.
| std::string tgbotxx::InputProfilePhotoAnimated::animation |
The animated 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 75 of file InputProfilePhoto.hpp.
| double tgbotxx::InputProfilePhotoAnimated::mainFrameTimestamp {0.0} |
Optional. Timestamp in seconds of the frame that will be used as the static profile photo. Defaults to 0.0.
Definition at line 78 of file InputProfilePhoto.hpp.