tgbot-cpp
InlineQueryResultDocument.h
Go to the documentation of this file.
1 //
2 // Created by Konstantin Kukin on 27/12/16
3 //
4 
5 #ifndef TGBOT_INLINEQUERYRESULTDOCUMENT_H
6 #define TGBOT_INLINEQUERYRESULTDOCUMENT_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<InlineQueryResultDocument> Ptr;
25 
27  this->type = TYPE;
28  this->thumbHeight = 0;
29  this->thumbWidth = 0;
30  }
31 
35  std::string documentUrl;
36 
40  std::string mimeType;
41 
45  std::string description;
46 
50  std::string thumbUrl;
51 
55  int32_t thumbWidth;
56 
60  int32_t thumbHeight;
61 };
62 }
63 
64 #endif //TGBOT_INLINEQUERYRESULTDOCUMENT_H
int32_t thumbHeight
Optinal. Thumbnail height.
std::string thumbUrl
Optional. Url of the thumbnail for the result.
std::string type
Type of the result.
Definition: Api.h:47
int32_t thumbWidth
Optional. Thumbnail width.
std::string description
Optional. Short description of the result.
std::string mimeType
Mime type of the content of the file, either &#39;application/pdf&#39; or &#39;application/zip&#39;.
std::shared_ptr< InlineQueryResultDocument > Ptr
std::string documentUrl
A valid URL for the file.
This abstract class is base of all inline query results.