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

This object represents a list of gifts. https://core.telegram.org/bots/api#gifts. More...

#include <Gifts.hpp>

Public Member Functions

 Gifts ()=default
 
 Gifts (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::vector< Ptr< Gift > > gifts
 The list of gifts.
 

Detailed Description

This object represents a list of gifts. https://core.telegram.org/bots/api#gifts.

Definition at line 9 of file Gifts.hpp.

Constructor & Destructor Documentation

◆ Gifts() [1/2]

tgbotxx::Gifts::Gifts ( )
default

◆ Gifts() [2/2]

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

Definition at line 11 of file Gifts.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 27 of file Gifts.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 20 of file Gifts.hpp.

Member Data Documentation

◆ gifts

std::vector<Ptr<Gift> > tgbotxx::Gifts::gifts

The list of gifts.

Definition at line 16 of file Gifts.hpp.


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