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

An animated profile photo in the MPEG4 format https://core.telegram.org/bots/api#inputprofilephotoanimated. More...

#include <InputProfilePhoto.hpp>

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

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.
 

Detailed Description

An animated profile photo in the MPEG4 format https://core.telegram.org/bots/api#inputprofilephotoanimated.

Definition at line 65 of file InputProfilePhoto.hpp.

Constructor & Destructor Documentation

◆ InputProfilePhotoAnimated() [1/2]

tgbotxx::InputProfilePhotoAnimated::InputProfilePhotoAnimated ( )
inline

Definition at line 66 of file InputProfilePhoto.hpp.

◆ InputProfilePhotoAnimated() [2/2]

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

Definition at line 69 of file InputProfilePhoto.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Reimplemented from tgbotxx::InputProfilePhoto.

Definition at line 90 of file InputProfilePhoto.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::InputProfilePhoto.

Definition at line 82 of file InputProfilePhoto.hpp.

Member Data Documentation

◆ animation

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.

◆ mainFrameTimestamp

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.


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