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

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. 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 thumbUrl
 Optional. Url of the thumbnail for the result.
 
std::int32_t thumbWidth
 Optional. Thumbnail width.
 
std::int32_t thumbHeight
 Optinal. 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 20 of file InlineQueryResultContact.h.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ InlineQueryResultContact()

TgBot::InlineQueryResultContact::InlineQueryResultContact ( )
inline

Definition at line 26 of file InlineQueryResultContact.h.

Member Data Documentation

◆ firstName

std::string TgBot::InlineQueryResultContact::firstName

Contact's first name.

Definition at line 38 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 53 of file InlineQueryResultContact.h.

◆ lastName

std::string TgBot::InlineQueryResultContact::lastName

Optional. Contact's last name.

Definition at line 43 of file InlineQueryResultContact.h.

◆ phoneNumber

std::string TgBot::InlineQueryResultContact::phoneNumber

Contact's phone number.

Definition at line 33 of file InlineQueryResultContact.h.

◆ thumbHeight

std::int32_t TgBot::InlineQueryResultContact::thumbHeight

Optinal. Thumbnail height.

Definition at line 68 of file InlineQueryResultContact.h.

◆ thumbUrl

std::string TgBot::InlineQueryResultContact::thumbUrl

Optional. Url of the thumbnail for the result.

Definition at line 58 of file InlineQueryResultContact.h.

◆ thumbWidth

std::int32_t TgBot::InlineQueryResultContact::thumbWidth

Optional. Thumbnail width.

Definition at line 63 of file InlineQueryResultContact.h.

◆ TYPE

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

Definition at line 22 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 48 of file InlineQueryResultContact.h.


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