tgbot-cpp
Loading...
Searching...
No Matches
TgBot::InlineQueryResultContact Class Reference

Represents a contact with a phone number. More...

#include <InlineQueryResultContact.h>

Inheritance diagram for TgBot::InlineQueryResultContact:
TgBot::InlineQueryResult

Public Types

typedef std::shared_ptr< InlineQueryResultContactPtr
 
- Public Types inherited from TgBot::InlineQueryResult
typedef std::shared_ptr< InlineQueryResultPtr
 

Public Member Functions

 InlineQueryResultContact ()
 
- Public Member Functions inherited from TgBot::InlineQueryResult
 InlineQueryResult ()
 
virtual ~InlineQueryResult ()
 

Public Attributes

std::string phoneNumber
 Contact's phone number.
 
std::string firstName
 Contact's first name.
 
std::string lastName
 Optional. Contact's last name.
 
std::string vcard
 Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes.
 
InputMessageContent::Ptr inputMessageContent
 Optional. Content of the message to be sent instead of the contact.
 
std::string thumbnailUrl
 Optional. Url of the thumbnail for the result.
 
std::int32_t thumbnailWidth
 Optional. Thumbnail width.
 
std::int32_t thumbnailHeight
 Optional. Thumbnail height.
 
- Public Attributes inherited from TgBot::InlineQueryResult
std::string type
 Type of the result.
 
std::string id
 Unique identifier for this result, 1-64 bytes.
 
InlineKeyboardMarkup::Ptr replyMarkup
 Optional. Inline keyboard attached to the message.
 

Static Public Attributes

static const std::string TYPE
 

Detailed Description

Represents a contact with a phone number.

By default, this contact will be sent by the user. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the contact.

Definition at line 21 of file InlineQueryResultContact.h.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ InlineQueryResultContact()

TgBot::InlineQueryResultContact::InlineQueryResultContact ( )
inline

Definition at line 28 of file InlineQueryResultContact.h.

Member Data Documentation

◆ firstName

std::string TgBot::InlineQueryResultContact::firstName

Contact's first name.

Definition at line 40 of file InlineQueryResultContact.h.

◆ inputMessageContent

InputMessageContent::Ptr TgBot::InlineQueryResultContact::inputMessageContent

Optional. Content of the message to be sent instead of the contact.

Definition at line 55 of file InlineQueryResultContact.h.

◆ lastName

std::string TgBot::InlineQueryResultContact::lastName

Optional. Contact's last name.

Definition at line 45 of file InlineQueryResultContact.h.

◆ phoneNumber

std::string TgBot::InlineQueryResultContact::phoneNumber

Contact's phone number.

Definition at line 35 of file InlineQueryResultContact.h.

◆ thumbnailHeight

std::int32_t TgBot::InlineQueryResultContact::thumbnailHeight

Optional. Thumbnail height.

Definition at line 70 of file InlineQueryResultContact.h.

◆ thumbnailUrl

std::string TgBot::InlineQueryResultContact::thumbnailUrl

Optional. Url of the thumbnail for the result.

Definition at line 60 of file InlineQueryResultContact.h.

◆ thumbnailWidth

std::int32_t TgBot::InlineQueryResultContact::thumbnailWidth

Optional. Thumbnail width.

Definition at line 65 of file InlineQueryResultContact.h.

◆ TYPE

const std::string TgBot::InlineQueryResultContact::TYPE
static

Definition at line 24 of file InlineQueryResultContact.h.

◆ vcard

std::string TgBot::InlineQueryResultContact::vcard

Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes.

Definition at line 50 of file InlineQueryResultContact.h.


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