tgbot-cpp
Loading...
Searching...
No Matches
Contact.h
Go to the documentation of this file.
1#ifndef TGBOT_CPP_CONTACT_H
2#define TGBOT_CPP_CONTACT_H
3
4#include <string>
5#include <memory>
6
7namespace TgBot {
8
14class Contact {
15
16public:
17 typedef std::shared_ptr<Contact> Ptr;
18
22 std::string phoneNumber;
23
27 std::string firstName;
28
32 std::string lastName;
33
37 std::int64_t userId;
38
42 std::string vcard;
43};
44
45}
46
47#endif //TGBOT_CPP_CONTACT_H
This object represents a phone contact.
Definition Contact.h:14
std::shared_ptr< Contact > Ptr
Definition Contact.h:17
std::int64_t userId
Optional. Contact's user identifier in Telegram.
Definition Contact.h:37
std::string vcard
Optional. Additional data about the contact in the form of a vCard.
Definition Contact.h:42
std::string firstName
Contact's first name.
Definition Contact.h:27
std::string lastName
Optional. Contact's last name.
Definition Contact.h:32
std::string phoneNumber
Contact's phone number.
Definition Contact.h:22
Definition Api.h:40