tgbot-cpp
Loading...
Searching...
No Matches
InlineQueryResultArticle.h
Go to the documentation of this file.
1#ifndef TGBOT_INLINEQUERYRESULTARTICLE_H
2#define TGBOT_INLINEQUERYRESULTARTICLE_H
3
6
7#include <cstdint>
8#include <string>
9#include <memory>
10
11namespace TgBot {
12
19public:
20 static const std::string TYPE;
21
22 typedef std::shared_ptr<InlineQueryResultArticle> Ptr;
23
25 this->type = TYPE;
26 }
27
31 std::string title;
32
37
41 std::string url;
42
46 bool hideUrl;
47
51 std::string description;
52
56 std::string thumbUrl;
57
61 std::int32_t thumbWidth;
62
66 std::int32_t thumbHeight;
67};
68}
69
70#endif //TGBOT_INLINEQUERYRESULTARTICLE_H
Represents a link to an article of web page.
static const std::string TYPE
bool hideUrl
Optional. Pass True if you don't want the URL to be shown in the message.
InlineQueryResultArticle()
std::string url
Optional. URL of the result.
std::string thumbUrl
Optional. Url of the thumbnail for the result.
InputMessageContent::Ptr inputMessageContent
Content of the message to be sent.
std::string title
Title of the result.
std::shared_ptr< InlineQueryResultArticle > Ptr
std::int32_t thumbHeight
Optional. Thumbnail height.
std::string description
Optional. Short description of the result.
std::int32_t thumbWidth
Optional. Thumbnail width.
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