|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Describes the birthdate of a user. https://core.telegram.org/bots/api#birthdate. More...
#include <Birthdate.hpp>
Public Member Functions | |
| Birthdate ()=default | |
| Birthdate (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 | day {} |
| Day of the user's birth; 1-31. | |
| std::int32_t | month {} |
| Month of the user's birth; 1-12. | |
| std::int32_t | year {} |
| Optional. Year of the user's birth. | |
Describes the birthdate of a user. https://core.telegram.org/bots/api#birthdate.
Definition at line 7 of file Birthdate.hpp.
|
default |
|
inlineexplicit |
Definition at line 9 of file Birthdate.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 33 of file Birthdate.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 24 of file Birthdate.hpp.
| std::int32_t tgbotxx::Birthdate::day {} |
Day of the user's birth; 1-31.
Definition at line 14 of file Birthdate.hpp.
| std::int32_t tgbotxx::Birthdate::month {} |
Month of the user's birth; 1-12.
Definition at line 17 of file Birthdate.hpp.
| std::int32_t tgbotxx::Birthdate::year {} |
Optional. Year of the user's birth.
Definition at line 20 of file Birthdate.hpp.