This object represents a list of gifts. https://core.telegram.org/bots/api#gifts.
More...
#include <Gifts.hpp>
|
| | 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.
|
| |
This object represents a list of gifts. https://core.telegram.org/bots/api#gifts.
Definition at line 9 of file Gifts.hpp.
◆ Gifts() [1/2]
| tgbotxx::Gifts::Gifts |
( |
| ) |
|
|
default |
◆ Gifts() [2/2]
| tgbotxx::Gifts::Gifts |
( |
const nl::json & |
json | ) |
|
|
inlineexplicit |
◆ 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.
◆ 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: