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

Contains the list of gifts received and owned by a user or a chat. https://core.telegram.org/bots/api#ownedgifts. More...

#include <OwnedGifts.hpp>

Public Member Functions

 OwnedGifts ()=default
 
 OwnedGifts (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 {}
 The total number of gifts owned by the user or the chat.
 
std::vector< Ptr< OwnedGift > > gifts
 The list of gifts.
 
std::string nextOffset
 Optional. Offset for the next request. If empty, then there are no more results.
 

Detailed Description

Contains the list of gifts received and owned by a user or a chat. https://core.telegram.org/bots/api#ownedgifts.

Definition at line 9 of file OwnedGifts.hpp.

Constructor & Destructor Documentation

◆ OwnedGifts() [1/2]

tgbotxx::OwnedGifts::OwnedGifts ( )
default

◆ OwnedGifts() [2/2]

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

Definition at line 11 of file OwnedGifts.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 35 of file OwnedGifts.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 26 of file OwnedGifts.hpp.

Member Data Documentation

◆ gifts

std::vector<Ptr<OwnedGift> > tgbotxx::OwnedGifts::gifts

The list of gifts.

Definition at line 19 of file OwnedGifts.hpp.

◆ nextOffset

std::string tgbotxx::OwnedGifts::nextOffset

Optional. Offset for the next request. If empty, then there are no more results.

Definition at line 22 of file OwnedGifts.hpp.

◆ totalCount

std::int32_t tgbotxx::OwnedGifts::totalCount {}

The total number of gifts owned by the user or the chat.

Definition at line 16 of file OwnedGifts.hpp.


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