tgbot-cpp
Loading...
Searching...
No Matches
TgBot::InlineQueryResultDocument Class Reference

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>

Inheritance diagram for TgBot::InlineQueryResultDocument:
TgBot::InlineQueryResult

Public Types

typedef std::shared_ptr< InlineQueryResultDocumentPtr
 
- Public Types inherited from TgBot::InlineQueryResult
typedef std::shared_ptr< InlineQueryResultPtr
 

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::PtrcaptionEntities
 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
 

Detailed Description

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.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ InlineQueryResultDocument()

TgBot::InlineQueryResultDocument::InlineQueryResultDocument ( )
inline

Definition at line 29 of file InlineQueryResultDocument.h.

Member Data Documentation

◆ caption

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.

◆ captionEntities

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.

◆ description

std::string TgBot::InlineQueryResultDocument::description

Optional. Short description of the result.

Definition at line 67 of file InlineQueryResultDocument.h.

◆ documentUrl

std::string TgBot::InlineQueryResultDocument::documentUrl

A valid URL for the file.

Definition at line 57 of file InlineQueryResultDocument.h.

◆ inputMessageContent

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.

◆ mimeType

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.

◆ parseMode

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.

◆ thumbHeight

std::int32_t TgBot::InlineQueryResultDocument::thumbHeight

Optinal. Thumbnail height.

Definition at line 87 of file InlineQueryResultDocument.h.

◆ thumbUrl

std::string TgBot::InlineQueryResultDocument::thumbUrl

Optional. URL of the thumbnail (jpeg only) for the file.

Definition at line 77 of file InlineQueryResultDocument.h.

◆ thumbWidth

std::int32_t TgBot::InlineQueryResultDocument::thumbWidth

Optional. Thumbnail width.

Definition at line 82 of file InlineQueryResultDocument.h.

◆ title

std::string TgBot::InlineQueryResultDocument::title

Title for the result.

Definition at line 36 of file InlineQueryResultDocument.h.

◆ TYPE

const std::string TgBot::InlineQueryResultDocument::TYPE
static

Definition at line 25 of file InlineQueryResultDocument.h.


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