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

Represents the content of a contact message to be sent as the result of an inline query. https://core.telegram.org/bots/api#inputcontactmessagecontent. More...

#include <InputMessageContent.hpp>

Inheritance diagram for tgbotxx::InputContactMessageContent:
tgbotxx::InputMessageContent

Public Member Functions

 InputContactMessageContent ()
 
 InputContactMessageContent (const nl::json &json)
 
nl::json toJson () const override
 
void fromJson (const nl::json &json) override
 
- Public Member Functions inherited from tgbotxx::InputMessageContent
 InputMessageContent ()=default
 
 InputMessageContent (const nl::json &json)
 
virtual ~InputMessageContent ()=default
 

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 https://en.wikipedia.org/wiki/VCard . More...
 
- Public Attributes inherited from tgbotxx::InputMessageContent
std::string type
 Type of this content. More...
 

Detailed Description

Represents the content of a contact message to be sent as the result of an inline query. https://core.telegram.org/bots/api#inputcontactmessagecontent.

Definition at line 192 of file InputMessageContent.hpp.

Constructor & Destructor Documentation

◆ InputContactMessageContent() [1/2]

tgbotxx::InputContactMessageContent::InputContactMessageContent ( )
inline

Definition at line 193 of file InputMessageContent.hpp.

◆ InputContactMessageContent() [2/2]

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

Definition at line 196 of file InputMessageContent.hpp.

Member Function Documentation

◆ fromJson()

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

Reimplemented from tgbotxx::InputMessageContent.

Definition at line 222 of file InputMessageContent.hpp.

◆ toJson()

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

Reimplemented from tgbotxx::InputMessageContent.

Definition at line 213 of file InputMessageContent.hpp.

Member Data Documentation

◆ firstName

std::string tgbotxx::InputContactMessageContent::firstName

Contact's first name.

Definition at line 204 of file InputMessageContent.hpp.

◆ lastName

std::string tgbotxx::InputContactMessageContent::lastName

Optional. Contact's last name.

Definition at line 207 of file InputMessageContent.hpp.

◆ phoneNumber

std::string tgbotxx::InputContactMessageContent::phoneNumber

Contact's phone number.

Definition at line 201 of file InputMessageContent.hpp.

◆ vcard

std::string tgbotxx::InputContactMessageContent::vcard

Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes https://en.wikipedia.org/wiki/VCard .

Definition at line 211 of file InputMessageContent.hpp.


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