tgbot-cpp
Loading...
Searching...
No Matches
InlineQueryResultContact.h
Go to the documentation of this file.
1#ifndef TGBOT_INLINEQUERYRESULTCONTACT_H
2#define TGBOT_INLINEQUERYRESULTCONTACT_H
3
6
7#include <cstdint>
8#include <string>
9#include <memory>
10
11namespace TgBot {
12
21public:
22 static const std::string TYPE;
23
24 typedef std::shared_ptr<InlineQueryResultContact> Ptr;
25
27 this->type = TYPE;
28 }
29
33 std::string phoneNumber;
34
38 std::string firstName;
39
43 std::string lastName;
44
48 std::string vcard;
49
54
58 std::string thumbUrl;
59
63 std::int32_t thumbWidth;
64
68 std::int32_t thumbHeight;
69};
70}
71
72#endif //TGBOT_INLINEQUERYRESULTCONTACT_H
Represents a contact with a phone number. By default, this contact will be sent by the user....
std::int32_t thumbWidth
Optional. Thumbnail width.
InputMessageContent::Ptr inputMessageContent
Optional. Content of the message to be sent instead of the contact.
std::shared_ptr< InlineQueryResultContact > Ptr
std::string thumbUrl
Optional. Url of the thumbnail for the result.
std::string vcard
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes.
std::string lastName
Optional. Contact's last name.
std::string firstName
Contact's first name.
std::string phoneNumber
Contact's phone number.
std::int32_t thumbHeight
Optinal. Thumbnail height.
This abstract class is base of all inline query results.
std::string type
Type of the result.
std::shared_ptr< InputMessageContent > Ptr
Definition Api.h:39