tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::ChatPhoto Struct Reference

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...
 

Detailed Description

This object represents a chat photo. https://core.telegram.org/bots/api#chatphoto.

Definition at line 7 of file ChatPhoto.hpp.

Constructor & Destructor Documentation

◆ ChatPhoto() [1/2]

tgbotxx::ChatPhoto::ChatPhoto ( )
default

◆ ChatPhoto() [2/2]

tgbotxx::ChatPhoto::ChatPhoto ( const nl::json &  json)
inlineexplicit

Definition at line 9 of file ChatPhoto.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::ChatPhoto::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 37 of file ChatPhoto.hpp.

◆ toJson()

nl::json tgbotxx::ChatPhoto::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 27 of file ChatPhoto.hpp.

Member Data Documentation

◆ bigFileId

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.

◆ bigFileUniqueId

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.

◆ smallFileId

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.

◆ smallFileUniqueId

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.


The documentation for this struct was generated from the following file: