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 thumbnailUrl;
57
61 std::int32_t thumbnailWidth;
62
66 std::int32_t thumbnailHeight;
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 thumbnailUrl
Optional. Url of the thumbnail for the result.
std::int32_t thumbnailHeight
Optional. Thumbnail height.
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 thumbnailWidth
Optional. Thumbnail width.
std::string description
Optional. Short description of the result.
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