tgbotxx 1.2.9.5
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::UserProfileAudios Struct Reference

This object represents the audios displayed on a user's profile. https://core.telegram.org/bots/api#userprofileaudios. More...

#include <UserProfileAudios.hpp>

Public Member Functions

 UserProfileAudios ()=default
 
 UserProfileAudios (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON.
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON.
 

Public Attributes

std::int32_t totalCount
 Total number of profile audios for the target user.
 
std::vector< Ptr< Audio > > audios
 Requested profile audios.
 

Detailed Description

This object represents the audios displayed on a user's profile. https://core.telegram.org/bots/api#userprofileaudios.

Definition at line 8 of file UserProfileAudios.hpp.

Constructor & Destructor Documentation

◆ UserProfileAudios() [1/2]

tgbotxx::UserProfileAudios::UserProfileAudios ( )
default

◆ UserProfileAudios() [2/2]

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

Definition at line 10 of file UserProfileAudios.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 31 of file UserProfileAudios.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 23 of file UserProfileAudios.hpp.

Member Data Documentation

◆ audios

std::vector<Ptr<Audio> > tgbotxx::UserProfileAudios::audios

Requested profile audios.

Definition at line 18 of file UserProfileAudios.hpp.

◆ totalCount

std::int32_t tgbotxx::UserProfileAudios::totalCount

Total number of profile audios for the target user.

Definition at line 15 of file UserProfileAudios.hpp.


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