|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo. https://core.telegram.org/bots/api#inlinequeryresultphoto. More...
#include <InlineQueryResult.hpp>
Public Member Functions | |
| InlineQueryResultPhoto () | |
| InlineQueryResultPhoto (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) | |
| virtual | ~InlineQueryResult ()=default |
Public Attributes | |
| std::string | photoUrl |
| A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB. | |
| std::string | thumbnailUrl |
| URL of the thumbnail for the photo. | |
| std::int32_t | photoWidth {} |
| Optional. Width of the photo. | |
| std::int32_t | photoHeight {} |
| Optional. Height of the photo. | |
| std::string | title |
| Optional. Title for the result. | |
| std::string | description |
| Optional. Short description of the result. | |
| std::string | caption |
| Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing. | |
| std::string | parseMode |
| Optional. Mode for parsing entities in the photo caption. See formatting options for more details. | |
| std::vector< Ptr< MessageEntity > > | captionEntities |
| Optional. List of special entities that appear in the caption, which can be specified instead of parseMode. | |
| Ptr< InputMessageContent > | inputMessageContent |
| Optional. Content of the message to be sent instead of the photo. | |
Public Attributes inherited from tgbotxx::InlineQueryResult | |
| std::string | type |
| Type of the result. | |
| std::string | id |
| Unique identifier for this result, 1-64 bytes. | |
| Ptr< InlineKeyboardMarkup > | replyMarkup |
| Optional. Inline keyboard attached to the message. | |
Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo. https://core.telegram.org/bots/api#inlinequeryresultphoto.
Definition at line 132 of file InlineQueryResult.hpp.
|
inline |
Definition at line 133 of file InlineQueryResult.hpp.
|
inlineexplicit |
Definition at line 136 of file InlineQueryResult.hpp.
|
inlineoverridevirtual |
Reimplemented from tgbotxx::InlineQueryResult.
Definition at line 185 of file InlineQueryResult.hpp.
|
inlineoverridevirtual |
Reimplemented from tgbotxx::InlineQueryResult.
Definition at line 170 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultPhoto::caption |
Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
Definition at line 159 of file InlineQueryResult.hpp.
| std::vector<Ptr<MessageEntity> > tgbotxx::InlineQueryResultPhoto::captionEntities |
Optional. List of special entities that appear in the caption, which can be specified instead of parseMode.
Definition at line 165 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultPhoto::description |
Optional. Short description of the result.
Definition at line 156 of file InlineQueryResult.hpp.
| Ptr<InputMessageContent> tgbotxx::InlineQueryResultPhoto::inputMessageContent |
Optional. Content of the message to be sent instead of the photo.
Definition at line 168 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultPhoto::parseMode |
Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
Definition at line 162 of file InlineQueryResult.hpp.
| std::int32_t tgbotxx::InlineQueryResultPhoto::photoHeight {} |
Optional. Height of the photo.
Definition at line 150 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultPhoto::photoUrl |
A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB.
Definition at line 141 of file InlineQueryResult.hpp.
| std::int32_t tgbotxx::InlineQueryResultPhoto::photoWidth {} |
Optional. Width of the photo.
Definition at line 147 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultPhoto::thumbnailUrl |
URL of the thumbnail for the photo.
Definition at line 144 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultPhoto::title |
Optional. Title for the result.
Definition at line 153 of file InlineQueryResult.hpp.