tgbot-cpp
Loading...
Searching...
No Matches
InlineQueryResultPhoto.h
Go to the documentation of this file.
1#ifndef TGBOT_INLINEQUERYRESULTPHOTO_H
2#define TGBOT_INLINEQUERYRESULTPHOTO_H
3
7
8#include <cstdint>
9#include <string>
10#include <memory>
11#include <vector>
12
13namespace TgBot {
14
23public:
24 static const std::string TYPE;
25
26 typedef std::shared_ptr<InlineQueryResultPhoto> Ptr;
27
29 this->type = TYPE;
30 }
31
37 std::string photoUrl;
38
42 std::string thumbUrl;
43
47 std::int32_t photoWidth;
48
52 std::int32_t photoHeight;
53
57 std::string title;
58
62 std::string description;
63
67 std::string caption;
68
73 std::string parseMode;
74
78 std::vector<MessageEntity::Ptr> captionEntities;
79
84};
85}
86
87#endif //TGBOT_INLINEQUERYRESULTPHOTO_H
This abstract class is base of all inline query results.
std::string type
Type of the result.
Represents a link to a photo. By default, this photo will be sent by the user with optional caption....
std::string photoUrl
A valid URL of the photo. Photo must be in jpeg format. Photo size must not exceed 5MB.
std::int32_t photoHeight
Optional. Height of the photo.
std::string parseMode
Optional. Mode for parsing entities in the photo caption. See https://core.telegram....
std::string description
Optional. Short description of the result.
std::string caption
Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
std::shared_ptr< InlineQueryResultPhoto > Ptr
InputMessageContent::Ptr inputMessageContent
Optional. Content of the message to be sent instead of the photo.
std::string thumbUrl
URL of the thumbnail for the photo.
std::int32_t photoWidth
Optional. Width of the photo.
std::string title
Optional. Title for the result.
std::vector< MessageEntity::Ptr > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::shared_ptr< InputMessageContent > Ptr
Definition Api.h:39