Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.
More...
#include <Types.h>
|
| std::string | type { TYPE } |
| | Type of the result, must be photo.
|
| std::string | id { } |
| | Unique identifier for this result, 1-64 bytes.
|
| std::string | photoFileId { } |
| | A valid file identifier of the photo.
|
| std::optional< std::string > | title { } |
| | Optional. Title for the result.
|
| std::optional< std::string > | description { } |
| | Optional. Short description of the result.
|
| std::optional< std::string > | caption { } |
| | Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
|
| std::optional< std::string > | parseMode { } |
| | Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
|
| std::optional< std::vector< std::shared_ptr< MessageEntity > > > | captionEntities { } |
| | Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.
|
| std::optional< bool > | showCaptionAboveMedia { } |
| | Optional. Pass True if the caption must be shown above the message media.
|
| std::shared_ptr< InlineKeyboardMarkup > | replyMarkup { } |
| | Optional. Inline keyboard attached to the message.
|
| std::shared_ptr< InputMessageContent > | inputMessageContent { } |
| | Optional. Content of the message to be sent instead of the photo.
|
Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.
Definition at line 4917 of file Types.h.
◆ Ptr
◆ caption
| std::optional<std::string> TgBot::InlineQueryResultCachedPhoto::caption { } |
Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
Definition at line 4950 of file Types.h.
◆ captionEntities
| std::optional<std::vector<std::shared_ptr<MessageEntity> > > TgBot::InlineQueryResultCachedPhoto::captionEntities { } |
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.
Definition at line 4962 of file Types.h.
◆ description
| std::optional<std::string> TgBot::InlineQueryResultCachedPhoto::description { } |
Optional. Short description of the result.
Definition at line 4945 of file Types.h.
◆ id
| std::string TgBot::InlineQueryResultCachedPhoto::id { } |
Unique identifier for this result, 1-64 bytes.
Definition at line 4930 of file Types.h.
◆ inputMessageContent
| std::shared_ptr<InputMessageContent> TgBot::InlineQueryResultCachedPhoto::inputMessageContent { } |
Optional. Content of the message to be sent instead of the photo.
Definition at line 4977 of file Types.h.
◆ parseMode
| std::optional<std::string> TgBot::InlineQueryResultCachedPhoto::parseMode { } |
Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
Definition at line 4956 of file Types.h.
◆ photoFileId
| std::string TgBot::InlineQueryResultCachedPhoto::photoFileId { } |
A valid file identifier of the photo.
Definition at line 4935 of file Types.h.
◆ replyMarkup
Optional. Inline keyboard attached to the message.
Definition at line 4972 of file Types.h.
◆ showCaptionAboveMedia
| std::optional<bool> TgBot::InlineQueryResultCachedPhoto::showCaptionAboveMedia { } |
Optional. Pass True if the caption must be shown above the message media.
Definition at line 4967 of file Types.h.
◆ title
| std::optional<std::string> TgBot::InlineQueryResultCachedPhoto::title { } |
Optional. Title for the result.
Definition at line 4940 of file Types.h.
◆ TYPE
| TGBOT_API const std::string TgBot::InlineQueryResultCachedPhoto::TYPE |
|
static |
◆ type
| std::string TgBot::InlineQueryResultCachedPhoto::type { TYPE } |
Type of the result, must be photo.
Definition at line 4925 of file Types.h.
The documentation for this struct was generated from the following file: