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

Base class for profile photos to set https://core.telegram.org/bots/api#inputprofilephoto. More...

#include <InputProfilePhoto.hpp>

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

Public Member Functions

 InputProfilePhoto ()=default
 
 InputProfilePhoto (const nl::json &json)
 
virtual ~InputProfilePhoto ()=default
 
virtual nl::json toJson () const
 
virtual void fromJson (const nl::json &json)
 

Public Attributes

std::string type
 Type of the profile photo.
 

Detailed Description

Base class for profile photos to set https://core.telegram.org/bots/api#inputprofilephoto.

Definition at line 8 of file InputProfilePhoto.hpp.

Constructor & Destructor Documentation

◆ InputProfilePhoto() [1/2]

tgbotxx::InputProfilePhoto::InputProfilePhoto ( )
default

◆ InputProfilePhoto() [2/2]

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

Definition at line 10 of file InputProfilePhoto.hpp.

◆ ~InputProfilePhoto()

virtual tgbotxx::InputProfilePhoto::~InputProfilePhoto ( )
virtualdefault

Member Function Documentation

◆ fromJson()

virtual void tgbotxx::InputProfilePhoto::fromJson ( const nl::json &  json)
inlinevirtual

◆ toJson()

virtual nl::json tgbotxx::InputProfilePhoto::toJson ( ) const
inlinevirtual

Member Data Documentation

◆ type

std::string tgbotxx::InputProfilePhoto::type

Type of the profile photo.

Definition at line 16 of file InputProfilePhoto.hpp.


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