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

Represents a link to a file stored on the Telegram servers. 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. More...

#include <InlineQueryResultCachedDocument.h>

Inheritance diagram for TgBot::InlineQueryResultCachedDocument:
TgBot::InlineQueryResult

Public Types

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

Public Member Functions

 InlineQueryResultCachedDocument ()
 
- Public Member Functions inherited from TgBot::InlineQueryResult
 InlineQueryResult ()
 
virtual ~InlineQueryResult ()
 

Public Attributes

std::string title
 Title for the result.
 
std::string documentFileId
 A valid file identifier for the file.
 
std::string description
 Optional. Short description of 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.
 
InputMessageContent::Ptr inputMessageContent
 Optional. Content of the message to be sent instead of the file.
 
- 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 stored on the Telegram servers. 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.

Definition at line 21 of file InlineQueryResultCachedDocument.h.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ InlineQueryResultCachedDocument()

TgBot::InlineQueryResultCachedDocument::InlineQueryResultCachedDocument ( )
inline

Definition at line 27 of file InlineQueryResultCachedDocument.h.

Member Data Documentation

◆ caption

std::string TgBot::InlineQueryResultCachedDocument::caption

Optional. Caption of the document to be sent, 0-1024 characters after entities parsing.

Definition at line 49 of file InlineQueryResultCachedDocument.h.

◆ captionEntities

std::vector<MessageEntity::Ptr> TgBot::InlineQueryResultCachedDocument::captionEntities

Optional. List of special entities that appear in the caption, which can be specified instead of parseMode.

Definition at line 60 of file InlineQueryResultCachedDocument.h.

◆ description

std::string TgBot::InlineQueryResultCachedDocument::description

Optional. Short description of the result.

Definition at line 44 of file InlineQueryResultCachedDocument.h.

◆ documentFileId

std::string TgBot::InlineQueryResultCachedDocument::documentFileId

A valid file identifier for the file.

Definition at line 39 of file InlineQueryResultCachedDocument.h.

◆ inputMessageContent

InputMessageContent::Ptr TgBot::InlineQueryResultCachedDocument::inputMessageContent

Optional. Content of the message to be sent instead of the file.

Definition at line 65 of file InlineQueryResultCachedDocument.h.

◆ parseMode

std::string TgBot::InlineQueryResultCachedDocument::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 55 of file InlineQueryResultCachedDocument.h.

◆ title

std::string TgBot::InlineQueryResultCachedDocument::title

Title for the result.

Definition at line 34 of file InlineQueryResultCachedDocument.h.

◆ TYPE

const std::string TgBot::InlineQueryResultCachedDocument::TYPE
static

Definition at line 23 of file InlineQueryResultCachedDocument.h.


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