tgbot-cpp
InlineQueryResultContact.h
Go to the documentation of this file.
1 //
2 // Created by Konstantin Kukin on 27/12/16
3 //
4 
5 #ifndef TGBOT_INLINEQUERYRESULTCONTACT_H
6 #define TGBOT_INLINEQUERYRESULTCONTACT_H
7 
8 #include <string>
9 #include <memory>
10 
12 
13 namespace TgBot {
14 
21 public:
22  static const std::string TYPE;
23 
24  typedef std::shared_ptr<InlineQueryResultContact> Ptr;
25 
27  this->type = TYPE;
28  this->thumbHeight = 0;
29  this->thumbWidth = 0;
30  }
31 
35  std::string phoneNumber;
36 
40  std::string firstName;
41 
45  std::string lastName;
46 
50  std::string thumbUrl;
51 
55  int32_t thumbWidth;
56 
60  int32_t thumbHeight;
61 };
62 }
63 
64 #endif //TGBOT_INLINEQUERYRESULTCONTACT_H
std::shared_ptr< InlineQueryResultContact > Ptr
std::string type
Type of the result.
Definition: Api.h:49
int32_t thumbHeight
Optinal. Thumbnail height.
std::string firstName
Contact&#39;s first name.
Represents a contact with a phone number.
std::string lastName
Optional. Contact&#39;s last name.
This abstract class is base of all inline query results.
std::string thumbUrl
Optional. Url of the thumbnail for the result.
int32_t thumbWidth
Optional. Thumbnail width.
std::string phoneNumber
Contact&#39;s phone number.