tgbot-cpp
Loading...
Searching...
No Matches
InlineQueryResultDocument.h
Go to the documentation of this file.
1#ifndef TGBOT_INLINEQUERYRESULTDOCUMENT_H
2#define TGBOT_INLINEQUERYRESULTDOCUMENT_H
3
7
8#include <cstdint>
9#include <memory>
10#include <string>
11#include <vector>
12
13namespace TgBot {
14
25
26public:
27 static const std::string TYPE;
28
29 typedef std::shared_ptr<InlineQueryResultDocument> Ptr;
30
32 this->type = TYPE;
33 }
34
38 std::string title;
39
43 std::string caption;
44
50 std::string parseMode;
51
55 std::vector<MessageEntity::Ptr> captionEntities;
56
60 std::string documentUrl;
61
65 std::string mimeType;
66
70 std::string description;
71
76
80 std::string thumbnailUrl;
81
85 std::int32_t thumbnailWidth;
86
90 std::int32_t thumbnailHeight;
91};
92}
93
94#endif //TGBOT_INLINEQUERYRESULTDOCUMENT_H
std::string description
Optional. Short description of the result.
std::string title
Title for the result.
InputMessageContent::Ptr inputMessageContent
Optional. Content of the message to be sent instead of the file.
std::int32_t thumbnailWidth
Optional. Thumbnail width.
std::string thumbnailUrl
Optional. URL of the thumbnail (JPEG only) for the file.
std::string mimeType
MIME type of the content of the file, either “application/pdf” or “application/zip”
std::vector< MessageEntity::Ptr > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::string parseMode
Optional. Mode for parsing entities in the document caption.
std::shared_ptr< InlineQueryResultDocument > Ptr
std::int32_t thumbnailHeight
Optional. Thumbnail height.
std::string caption
Optional. Caption of the document to be sent, 0-1024 characters after entities parsing.
std::string documentUrl
A valid URL for the file.
This object represents one result of an inline query.
std::string type
Type of the result.
std::shared_ptr< InputMessageContent > Ptr
Definition Api.h:40