tgbot-cpp
Loading...
Searching...
No Matches
TgBot::InlineQueryResultArticle Struct Reference

Represents a link to an article or web page. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<InlineQueryResultArticle>

Public Attributes

std::string type { TYPE }
 Type of the result, must be article.
std::string id { }
 Unique identifier for this result, 1-64 Bytes.
std::string title { }
 Title of the result.
std::shared_ptr< InputMessageContent > inputMessageContent { }
 Content of the message to be sent.
std::shared_ptr< InlineKeyboardMarkup > replyMarkup { }
 Optional. Inline keyboard attached to the message.
std::optional< std::string > url { }
 Optional. URL of the result.
std::optional< std::string > description { }
 Optional. Short description of the result.
std::optional< std::string > thumbnailUrl { }
 Optional. Url of the thumbnail for the result.
std::optional< std::int32_t > thumbnailWidth { }
 Optional. Thumbnail width.
std::optional< std::int32_t > thumbnailHeight { }
 Optional. Thumbnail height.

Static Public Attributes

static TGBOT_API const std::string TYPE

Detailed Description

Represents a link to an article or web page.

Definition at line 4192 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 4193 of file Types.h.

Member Data Documentation

◆ description

std::optional<std::string> TgBot::InlineQueryResultArticle::description { }

Optional. Short description of the result.

Definition at line 4224 of file Types.h.

◆ id

std::string TgBot::InlineQueryResultArticle::id { }

Unique identifier for this result, 1-64 Bytes.

Definition at line 4204 of file Types.h.

◆ inputMessageContent

std::shared_ptr<InputMessageContent> TgBot::InlineQueryResultArticle::inputMessageContent { }

Content of the message to be sent.

Definition at line 4212 of file Types.h.

◆ replyMarkup

std::shared_ptr<InlineKeyboardMarkup> TgBot::InlineQueryResultArticle::replyMarkup { }

Optional. Inline keyboard attached to the message.

Definition at line 4216 of file Types.h.

◆ thumbnailHeight

std::optional<std::int32_t> TgBot::InlineQueryResultArticle::thumbnailHeight { }

Optional. Thumbnail height.

Definition at line 4236 of file Types.h.

◆ thumbnailUrl

std::optional<std::string> TgBot::InlineQueryResultArticle::thumbnailUrl { }

Optional. Url of the thumbnail for the result.

Definition at line 4228 of file Types.h.

◆ thumbnailWidth

std::optional<std::int32_t> TgBot::InlineQueryResultArticle::thumbnailWidth { }

Optional. Thumbnail width.

Definition at line 4232 of file Types.h.

◆ title

std::string TgBot::InlineQueryResultArticle::title { }

Title of the result.

Definition at line 4208 of file Types.h.

◆ TYPE

TGBOT_API const std::string TgBot::InlineQueryResultArticle::TYPE
static

Definition at line 4195 of file Types.h.

◆ type

std::string TgBot::InlineQueryResultArticle::type { TYPE }

Type of the result, must be article.

Definition at line 4200 of file Types.h.

◆ url

std::optional<std::string> TgBot::InlineQueryResultArticle::url { }

Optional. URL of the result.

Definition at line 4220 of file Types.h.


The documentation for this struct was generated from the following file: