tgbotxx 1.1.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::InputProfilePhotoStatic Struct Reference

A static profile photo in the .JPG format https://core.telegram.org/bots/api#inputprofilephotostatic. More...

#include <InputProfilePhoto.hpp>

Inheritance diagram for tgbotxx::InputProfilePhotoStatic:
tgbotxx::InputProfilePhoto

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.
 

Detailed Description

A static profile photo in the .JPG format https://core.telegram.org/bots/api#inputprofilephotostatic.

Definition at line 36 of file InputProfilePhoto.hpp.

Constructor & Destructor Documentation

◆ InputProfilePhotoStatic() [1/2]

tgbotxx::InputProfilePhotoStatic::InputProfilePhotoStatic ( )
inline

Definition at line 37 of file InputProfilePhoto.hpp.

◆ InputProfilePhotoStatic() [2/2]

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

Definition at line 40 of file InputProfilePhoto.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::InputProfilePhotoStatic::fromJson ( const nl::json &  json)
inlineoverridevirtual

Deserializes this object from JSON.

Reimplemented from tgbotxx::InputProfilePhoto.

Definition at line 57 of file InputProfilePhoto.hpp.

◆ toJson()

nl::json tgbotxx::InputProfilePhotoStatic::toJson ( ) const
inlineoverridevirtual

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::InputProfilePhoto.

Definition at line 50 of file InputProfilePhoto.hpp.

Member Data Documentation

◆ photo

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.


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