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< InputMessageContentinputMessageContent { }
 Content of the message to be sent.
std::shared_ptr< InlineKeyboardMarkupreplyMarkup { }
 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 4520 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 4521 of file Types.h.

Member Data Documentation

◆ description

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

Optional. Short description of the result.

Definition at line 4558 of file Types.h.

◆ id

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

Unique identifier for this result, 1-64 Bytes.

Definition at line 4533 of file Types.h.

◆ inputMessageContent

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

Content of the message to be sent.

Definition at line 4543 of file Types.h.

◆ replyMarkup

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

Optional. Inline keyboard attached to the message.

Definition at line 4548 of file Types.h.

◆ thumbnailHeight

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

Optional. Thumbnail height.

Definition at line 4573 of file Types.h.

◆ thumbnailUrl

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

Optional. Url of the thumbnail for the result.

Definition at line 4563 of file Types.h.

◆ thumbnailWidth

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

Optional. Thumbnail width.

Definition at line 4568 of file Types.h.

◆ title

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

Title of the result.

Definition at line 4538 of file Types.h.

◆ TYPE

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

Definition at line 4523 of file Types.h.

◆ type

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

Type of the result, must be article.

Definition at line 4528 of file Types.h.

◆ url

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

Optional. URL of the result.

Definition at line 4553 of file Types.h.


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