tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::InlineQueryResultArticle Struct Reference

Represents a link to an article or web page. https://core.telegram.org/bots/api#inlinequeryresultarticle. More...

#include <InlineQueryResult.hpp>

Inheritance diagram for tgbotxx::InlineQueryResultArticle:
tgbotxx::InlineQueryResult

Public Member Functions

 InlineQueryResultArticle ()
 
 InlineQueryResultArticle (const nl::json &json)
 
nl::json toJson () const override
 
void fromJson (const nl::json &json) override
 
- Public Member Functions inherited from tgbotxx::InlineQueryResult
 InlineQueryResult ()=default
 
 InlineQueryResult (const nl::json &json)
 

Public Attributes

std::string title
 Title of the result. More...
 
Ptr< InputMessageContentinputMessageContent {}
 Content of the message to be sent. More...
 
std::string url
 Optional. URL of the result. More...
 
bool hideUrl {}
 Optional. Pass True if you don't want the URL to be shown in the message. More...
 
std::string description
 Optional. Short description of the result. More...
 
std::string thumbnailUrl
 Optional. Url of the thumbnail for the result. More...
 
std::int32_t thumbnailWidth {}
 Optional. Thumbnail width. More...
 
std::int32_t thumbnailHeight {}
 Optional. Thumbnail height. More...
 
- Public Attributes inherited from tgbotxx::InlineQueryResult
std::string type
 Type of the result. More...
 
std::string id
 Unique identifier for this result, 1-64 bytes. More...
 
Ptr< InlineKeyboardMarkupreplyMarkup
 Optional. Inline keyboard attached to the message. More...
 

Detailed Description

Represents a link to an article or web page. https://core.telegram.org/bots/api#inlinequeryresultarticle.

Definition at line 70 of file InlineQueryResult.hpp.

Constructor & Destructor Documentation

◆ InlineQueryResultArticle() [1/2]

tgbotxx::InlineQueryResultArticle::InlineQueryResultArticle ( )
inline

Definition at line 71 of file InlineQueryResult.hpp.

◆ InlineQueryResultArticle() [2/2]

tgbotxx::InlineQueryResultArticle::InlineQueryResultArticle ( const nl::json &  json)
inlineexplicit

Definition at line 74 of file InlineQueryResult.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::InlineQueryResultArticle::fromJson ( const nl::json &  json)
inlineoverridevirtual

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 115 of file InlineQueryResult.hpp.

◆ toJson()

nl::json tgbotxx::InlineQueryResultArticle::toJson ( ) const
inlineoverridevirtual

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 102 of file InlineQueryResult.hpp.

Member Data Documentation

◆ description

std::string tgbotxx::InlineQueryResultArticle::description

Optional. Short description of the result.

Definition at line 91 of file InlineQueryResult.hpp.

◆ hideUrl

bool tgbotxx::InlineQueryResultArticle::hideUrl {}

Optional. Pass True if you don't want the URL to be shown in the message.

Definition at line 88 of file InlineQueryResult.hpp.

◆ inputMessageContent

Ptr<InputMessageContent> tgbotxx::InlineQueryResultArticle::inputMessageContent {}

Content of the message to be sent.

Definition at line 82 of file InlineQueryResult.hpp.

◆ thumbnailHeight

std::int32_t tgbotxx::InlineQueryResultArticle::thumbnailHeight {}

Optional. Thumbnail height.

Definition at line 100 of file InlineQueryResult.hpp.

◆ thumbnailUrl

std::string tgbotxx::InlineQueryResultArticle::thumbnailUrl

Optional. Url of the thumbnail for the result.

Definition at line 94 of file InlineQueryResult.hpp.

◆ thumbnailWidth

std::int32_t tgbotxx::InlineQueryResultArticle::thumbnailWidth {}

Optional. Thumbnail width.

Definition at line 97 of file InlineQueryResult.hpp.

◆ title

std::string tgbotxx::InlineQueryResultArticle::title

Title of the result.

Definition at line 79 of file InlineQueryResult.hpp.

◆ url

std::string tgbotxx::InlineQueryResultArticle::url

Optional. URL of the result.

Definition at line 85 of file InlineQueryResult.hpp.


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