tgbot-cpp
Loading...
Searching...
No Matches
TgBot::Contact Struct Reference

This object represents a phone contact. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<Contact>

Public Attributes

std::string phoneNumber { }
 Contact's phone number.
std::string firstName { }
 Contact's first name.
std::optional< std::string > lastName { }
 Optional. Contact's last name.
std::optional< 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.
std::optional< std::string > vcard { }
 Optional. Additional data about the contact in the form of a vCard.

Detailed Description

This object represents a phone contact.

Definition at line 3205 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::Contact::Ptr = std::shared_ptr<Contact>

Definition at line 3206 of file Types.h.

Member Data Documentation

◆ firstName

std::string TgBot::Contact::firstName { }

Contact's first name.

Definition at line 3216 of file Types.h.

◆ lastName

std::optional<std::string> TgBot::Contact::lastName { }

Optional. Contact's last name.

Definition at line 3221 of file Types.h.

◆ phoneNumber

std::string TgBot::Contact::phoneNumber { }

Contact's phone number.

Definition at line 3211 of file Types.h.

◆ userId

std::optional<std::int64_t> TgBot::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 3229 of file Types.h.

◆ vcard

std::optional<std::string> TgBot::Contact::vcard { }

Optional. Additional data about the contact in the form of a vCard.

Definition at line 3234 of file Types.h.


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