tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::InlineQueryResultContact Struct Reference

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

#include <InlineQueryResult.hpp>

Inheritance diagram for tgbotxx::InlineQueryResultContact:
tgbotxx::InlineQueryResult

Public Member Functions

 InlineQueryResultContact ()
 
 InlineQueryResultContact (const nl::json &json)
 
nl::json toJson () const override
 
void fromJson (const nl::json &json) override
 
- Public Member Functions inherited from tgbotxx::InlineQueryResult
 InlineQueryResult ()=default
 
 InlineQueryResult (const nl::json &json)
 

Public Attributes

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

Detailed Description

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

Definition at line 803 of file InlineQueryResult.hpp.

Constructor & Destructor Documentation

◆ InlineQueryResultContact() [1/2]

tgbotxx::InlineQueryResultContact::InlineQueryResultContact ( )
inline

Definition at line 804 of file InlineQueryResult.hpp.

◆ InlineQueryResultContact() [2/2]

tgbotxx::InlineQueryResultContact::InlineQueryResultContact ( const nl::json &  json)
inlineexplicit

Definition at line 807 of file InlineQueryResult.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::InlineQueryResultContact::fromJson ( const nl::json &  json)
inlineoverridevirtual

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 848 of file InlineQueryResult.hpp.

◆ toJson()

nl::json tgbotxx::InlineQueryResultContact::toJson ( ) const
inlineoverridevirtual

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 835 of file InlineQueryResult.hpp.

Member Data Documentation

◆ firstName

std::string tgbotxx::InlineQueryResultContact::firstName

Contact's first name.

Definition at line 815 of file InlineQueryResult.hpp.

◆ inputMessageContent

Ptr<InputMessageContent> tgbotxx::InlineQueryResultContact::inputMessageContent

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

Definition at line 824 of file InlineQueryResult.hpp.

◆ lastName

std::string tgbotxx::InlineQueryResultContact::lastName

Optional. Contact's last name.

Definition at line 818 of file InlineQueryResult.hpp.

◆ phoneNumber

std::string tgbotxx::InlineQueryResultContact::phoneNumber

Contact's phone number.

Definition at line 812 of file InlineQueryResult.hpp.

◆ thumbnailHeight

std::int32_t tgbotxx::InlineQueryResultContact::thumbnailHeight {}

Optional. Thumbnail height;.

Definition at line 833 of file InlineQueryResult.hpp.

◆ thumbnailUrl

std::string tgbotxx::InlineQueryResultContact::thumbnailUrl

Optional. Url of the thumbnail for the result.

Definition at line 827 of file InlineQueryResult.hpp.

◆ thumbnailWidth

std::int32_t tgbotxx::InlineQueryResultContact::thumbnailWidth {}

Optional. Thumbnail width;.

Definition at line 830 of file InlineQueryResult.hpp.

◆ vcard

std::string tgbotxx::InlineQueryResultContact::vcard

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

Definition at line 821 of file InlineQueryResult.hpp.


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