tgbot-cpp
|
Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method. More...
#include <InlineQueryResultDocument.h>
Public Types | |
typedef std::shared_ptr< InlineQueryResultDocument > | Ptr |
Public Types inherited from TgBot::InlineQueryResult | |
typedef std::shared_ptr< InlineQueryResult > | Ptr |
Public Member Functions | |
InlineQueryResultDocument () | |
Public Member Functions inherited from TgBot::InlineQueryResult | |
InlineQueryResult () | |
virtual | ~InlineQueryResult () |
Public Attributes | |
std::string | title |
Title for the result. | |
std::string | caption |
Optional. Caption of the document to be sent, 0-1024 characters after entities parsing. | |
std::string | parseMode |
Optional. Mode for parsing entities in the document caption. See https://core.telegram.org/bots/api#formatting-options for more details. | |
std::vector< MessageEntity::Ptr > | captionEntities |
Optional. List of special entities that appear in the caption, which can be specified instead of parseMode. | |
std::string | documentUrl |
A valid URL for the file. | |
std::string | mimeType |
Mime type of the content of the file, either “application/pdf” or “application/zip” | |
std::string | description |
Optional. Short description of the result. | |
InputMessageContent::Ptr | inputMessageContent |
Optional. Content of the message to be sent instead of the file. | |
std::string | thumbUrl |
Optional. URL of the thumbnail (jpeg only) for the file. | |
std::int32_t | thumbWidth |
Optional. Thumbnail width. | |
std::int32_t | thumbHeight |
Optinal. Thumbnail height. | |
Public Attributes inherited from TgBot::InlineQueryResult | |
std::string | type |
Type of the result. | |
std::string | id |
Unique identifier for this result, 1-64 bytes. | |
InlineKeyboardMarkup::Ptr | replyMarkup |
Optional. Inline keyboard attached to the message. | |
Static Public Attributes | |
static const std::string | TYPE |
Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.
Definition at line 23 of file InlineQueryResultDocument.h.
typedef std::shared_ptr<InlineQueryResultDocument> TgBot::InlineQueryResultDocument::Ptr |
Definition at line 27 of file InlineQueryResultDocument.h.
|
inline |
Definition at line 29 of file InlineQueryResultDocument.h.
std::string TgBot::InlineQueryResultDocument::caption |
Optional. Caption of the document to be sent, 0-1024 characters after entities parsing.
Definition at line 41 of file InlineQueryResultDocument.h.
std::vector<MessageEntity::Ptr> TgBot::InlineQueryResultDocument::captionEntities |
Optional. List of special entities that appear in the caption, which can be specified instead of parseMode.
Definition at line 52 of file InlineQueryResultDocument.h.
std::string TgBot::InlineQueryResultDocument::description |
Optional. Short description of the result.
Definition at line 67 of file InlineQueryResultDocument.h.
std::string TgBot::InlineQueryResultDocument::documentUrl |
A valid URL for the file.
Definition at line 57 of file InlineQueryResultDocument.h.
InputMessageContent::Ptr TgBot::InlineQueryResultDocument::inputMessageContent |
Optional. Content of the message to be sent instead of the file.
Definition at line 72 of file InlineQueryResultDocument.h.
std::string TgBot::InlineQueryResultDocument::mimeType |
Mime type of the content of the file, either “application/pdf” or “application/zip”
Definition at line 62 of file InlineQueryResultDocument.h.
std::string TgBot::InlineQueryResultDocument::parseMode |
Optional. Mode for parsing entities in the document caption. See https://core.telegram.org/bots/api#formatting-options for more details.
Definition at line 47 of file InlineQueryResultDocument.h.
std::int32_t TgBot::InlineQueryResultDocument::thumbHeight |
Optinal. Thumbnail height.
Definition at line 87 of file InlineQueryResultDocument.h.
std::string TgBot::InlineQueryResultDocument::thumbUrl |
Optional. URL of the thumbnail (jpeg only) for the file.
Definition at line 77 of file InlineQueryResultDocument.h.
std::int32_t TgBot::InlineQueryResultDocument::thumbWidth |
Optional. Thumbnail width.
Definition at line 82 of file InlineQueryResultDocument.h.
std::string TgBot::InlineQueryResultDocument::title |
Title for the result.
Definition at line 36 of file InlineQueryResultDocument.h.
|
static |
Definition at line 25 of file InlineQueryResultDocument.h.