tgbot-cpp
InlineQueryResultArticle.h
Go to the documentation of this file.
1 //
2 // Created by Andrea Giove on 26/03/16.
3 //
4 
5 #ifndef TGBOT_INLINEQUERYRESULTARTICLE_H
6 #define TGBOT_INLINEQUERYRESULTARTICLE_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<InlineQueryResultArticle> Ptr;
25 
27  this->type = TYPE;
28  this->hideUrl = false;
29  this->thumbHeight = 0;
30  this->thumbWidth = 0;
31  }
32 
36  std::string url;
37 
41  bool hideUrl;
42 
46  std::string description;
47 
51  std::string thumbUrl;
52 
56  int32_t thumbWidth;
57 
61  int32_t thumbHeight;
62 };
63 }
64 
65 #endif //TGBOT_INLINEQUERYRESULTARTICLE_H
InlineQueryResultArticle()
std::shared_ptr< InlineQueryResultArticle > Ptr
std::string url
Optional. URL of the result.
std::string type
Type of the result.
Definition: Api.h:47
Represents a link to an article of web page.
std::string description
Optional. Short description of the result.
This abstract class is base of all inline query results.
int32_t thumbHeight
Optinal. Thumbnail height.
std::string thumbUrl
Optional. Url of the thumbnail for the result.
int32_t thumbWidth
Optional. Thumbnail width.
bool hideUrl
Optional. Pass True if you don&#39;t want the URL to be shown in the message.
static const std::string TYPE