tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object represents a phone contact. https://core.telegram.org/bots/api#contact. More...
#include <Contact.hpp>
Public Member Functions | |
Contact ()=default | |
Contact (const nl::json &json) | |
nl::json | toJson () const |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
std::string | phoneNumber |
Contact's phone number. More... | |
std::string | firstName |
Contact's first name. More... | |
std::string | lastName |
Optional. Contact's last name. More... | |
std::int64_t | userId {} |
Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. More... | |
std::string | vcard |
Optional. Additional data about the contact in the form of a vCard https://en.wikipedia.org/wiki/VCard . More... | |
This object represents a phone contact. https://core.telegram.org/bots/api#contact.
Definition at line 7 of file Contact.hpp.
|
default |
|
inlineexplicit |
Definition at line 9 of file Contact.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 46 of file Contact.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 35 of file Contact.hpp.
std::string tgbotxx::Contact::firstName |
Contact's first name.
Definition at line 17 of file Contact.hpp.
std::string tgbotxx::Contact::lastName |
Optional. Contact's last name.
Definition at line 20 of file Contact.hpp.
std::string tgbotxx::Contact::phoneNumber |
Contact's phone number.
Definition at line 14 of file Contact.hpp.
std::int64_t tgbotxx::Contact::userId {} |
Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
Definition at line 26 of file Contact.hpp.
std::string tgbotxx::Contact::vcard |
Optional. Additional data about the contact in the form of a vCard https://en.wikipedia.org/wiki/VCard .
Definition at line 30 of file Contact.hpp.