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 <string>
10#include <memory>
11#include <vector>
12
13namespace TgBot {
14
24public:
25 static const std::string TYPE;
26
27 typedef std::shared_ptr<InlineQueryResultDocument> Ptr;
28
30 this->type = TYPE;
31 }
32
36 std::string title;
37
41 std::string caption;
42
47 std::string parseMode;
48
52 std::vector<MessageEntity::Ptr> captionEntities;
53
57 std::string documentUrl;
58
62 std::string mimeType;
63
67 std::string description;
68
73
77 std::string thumbUrl;
78
82 std::int32_t thumbWidth;
83
87 std::int32_t thumbHeight;
88};
89}
90
91#endif //TGBOT_INLINEQUERYRESULTDOCUMENT_H
Represents a link to a file. By default, this file will be sent by the user with an optional caption....
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::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 thumbUrl
Optional. URL of the thumbnail (jpeg only) for the file.
std::int32_t thumbWidth
Optional. Thumbnail width.
std::string parseMode
Optional. Mode for parsing entities in the document caption. See https://core.telegram....
std::shared_ptr< InlineQueryResultDocument > Ptr
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.
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