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

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

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<InlineQueryResultContact>

Public Attributes

std::string type { TYPE }
 Type of the result, must be contact.
std::string id { }
 Unique identifier for this result, 1-64 Bytes.
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::string > vcard { }
 Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes.
std::shared_ptr< InlineKeyboardMarkupreplyMarkup { }
 Optional. Inline keyboard attached to the message.
std::shared_ptr< InputMessageContentinputMessageContent { }
 Optional. Content of the message to be sent instead of the contact.
std::optional< std::string > thumbnailUrl { }
 Optional. Url of the thumbnail for the result.
std::optional< std::int32_t > thumbnailWidth { }
 Optional. Thumbnail width.
std::optional< std::int32_t > thumbnailHeight { }
 Optional. Thumbnail height.

Static Public Attributes

static TGBOT_API 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 input_message_content to send a message with the specified content instead of the contact.

Definition at line 5163 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 5164 of file Types.h.

Member Data Documentation

◆ firstName

std::string TgBot::InlineQueryResultContact::firstName { }

Contact's first name.

Definition at line 5186 of file Types.h.

◆ id

std::string TgBot::InlineQueryResultContact::id { }

Unique identifier for this result, 1-64 Bytes.

Definition at line 5176 of file Types.h.

◆ inputMessageContent

std::shared_ptr<InputMessageContent> TgBot::InlineQueryResultContact::inputMessageContent { }

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

Definition at line 5206 of file Types.h.

◆ lastName

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

Optional. Contact's last name.

Definition at line 5191 of file Types.h.

◆ phoneNumber

std::string TgBot::InlineQueryResultContact::phoneNumber { }

Contact's phone number.

Definition at line 5181 of file Types.h.

◆ replyMarkup

std::shared_ptr<InlineKeyboardMarkup> TgBot::InlineQueryResultContact::replyMarkup { }

Optional. Inline keyboard attached to the message.

Definition at line 5201 of file Types.h.

◆ thumbnailHeight

std::optional<std::int32_t> TgBot::InlineQueryResultContact::thumbnailHeight { }

Optional. Thumbnail height.

Definition at line 5221 of file Types.h.

◆ thumbnailUrl

std::optional<std::string> TgBot::InlineQueryResultContact::thumbnailUrl { }

Optional. Url of the thumbnail for the result.

Definition at line 5211 of file Types.h.

◆ thumbnailWidth

std::optional<std::int32_t> TgBot::InlineQueryResultContact::thumbnailWidth { }

Optional. Thumbnail width.

Definition at line 5216 of file Types.h.

◆ TYPE

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

Definition at line 5166 of file Types.h.

◆ type

std::string TgBot::InlineQueryResultContact::type { TYPE }

Type of the result, must be contact.

Definition at line 5171 of file Types.h.

◆ vcard

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

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

Definition at line 5196 of file Types.h.


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