tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object represents a chat photo. https://core.telegram.org/bots/api#chatphoto. More...
#include <ChatPhoto.hpp>
Public Member Functions | |
ChatPhoto ()=default | |
ChatPhoto (const nl::json &json) | |
nl::json | toJson () const |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
std::string | smallFileId |
File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed. More... | |
std::string | smallFileUniqueId |
Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. More... | |
std::string | bigFileId |
File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed. More... | |
std::string | bigFileUniqueId |
Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. More... | |
This object represents a chat photo. https://core.telegram.org/bots/api#chatphoto.
Definition at line 7 of file ChatPhoto.hpp.
|
default |
|
inlineexplicit |
Definition at line 9 of file ChatPhoto.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 37 of file ChatPhoto.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 27 of file ChatPhoto.hpp.
std::string tgbotxx::ChatPhoto::bigFileId |
File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
Definition at line 20 of file ChatPhoto.hpp.
std::string tgbotxx::ChatPhoto::bigFileUniqueId |
Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
Definition at line 23 of file ChatPhoto.hpp.
std::string tgbotxx::ChatPhoto::smallFileId |
File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
Definition at line 14 of file ChatPhoto.hpp.
std::string tgbotxx::ChatPhoto::smallFileUniqueId |
Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
Definition at line 17 of file ChatPhoto.hpp.