tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::InlineQueryResultCachedSticker Struct Reference

Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the photo. More...

#include <InlineQueryResult.hpp>

Inheritance diagram for tgbotxx::InlineQueryResultCachedSticker:
tgbotxx::InlineQueryResult

Public Member Functions

 InlineQueryResultCachedSticker ()
 
 InlineQueryResultCachedSticker (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)
 

Public Attributes

std::string stickerFileId
 A valid file identifier of the sticker. More...
 
Ptr< InputMessageContentinputMessageContent
 Optional. Optional. Content of the message to be sent instead of the sticker. More...
 
- Public Attributes inherited from tgbotxx::InlineQueryResult
std::string type
 Type of the result. More...
 
std::string id
 Unique identifier for this result, 1-64 bytes. More...
 
Ptr< InlineKeyboardMarkupreplyMarkup
 Optional. Inline keyboard attached to the message. More...
 

Detailed Description

Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the photo.

Note
This will only work in Telegram versions released after 9 April, 2016 for static stickers and after 06 July, 2019 for animated stickers. Older clients will ignore them.

Definition at line 1053 of file InlineQueryResult.hpp.

Constructor & Destructor Documentation

◆ InlineQueryResultCachedSticker() [1/2]

tgbotxx::InlineQueryResultCachedSticker::InlineQueryResultCachedSticker ( )
inline

Definition at line 1054 of file InlineQueryResult.hpp.

◆ InlineQueryResultCachedSticker() [2/2]

tgbotxx::InlineQueryResultCachedSticker::InlineQueryResultCachedSticker ( const nl::json &  json)
inlineexplicit

Definition at line 1057 of file InlineQueryResult.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::InlineQueryResultCachedSticker::fromJson ( const nl::json &  json)
inlineoverridevirtual

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 1075 of file InlineQueryResult.hpp.

◆ toJson()

nl::json tgbotxx::InlineQueryResultCachedSticker::toJson ( ) const
inlineoverridevirtual

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 1068 of file InlineQueryResult.hpp.

Member Data Documentation

◆ inputMessageContent

Ptr<InputMessageContent> tgbotxx::InlineQueryResultCachedSticker::inputMessageContent

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

Definition at line 1065 of file InlineQueryResult.hpp.

◆ stickerFileId

std::string tgbotxx::InlineQueryResultCachedSticker::stickerFileId

A valid file identifier of the sticker.

Definition at line 1062 of file InlineQueryResult.hpp.


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