tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object describes a sticker to be added to a sticker set. https://core.telegram.org/bots/api#inputsticker. More...
#include <InputSticker.hpp>
Public Member Functions | |
InputSticker ()=default | |
InputSticker (const nl::json &json) | |
nl::json | toJson () const |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
std::variant< cpr::File, std::string > | sticker {""} |
The added sticker. More... | |
std::vector< std::string > | emojiList |
List of 1-20 emoji associated with the sticker. More... | |
Ptr< MaskPosition > | maskPosition |
Optional. Position where the mask should be placed on faces. For “mask” stickers only. More... | |
std::vector< std::string > | keywords |
Optional. List of 0-20 search keywords for the sticker with total length of up to 64 characters. For “regular” and “custom_emoji” stickers only. More... | |
This object describes a sticker to be added to a sticker set. https://core.telegram.org/bots/api#inputsticker.
Definition at line 10 of file InputSticker.hpp.
|
default |
|
inlineexplicit |
Definition at line 12 of file InputSticker.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 49 of file InputSticker.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 35 of file InputSticker.hpp.
std::vector<std::string> tgbotxx::InputSticker::emojiList |
List of 1-20 emoji associated with the sticker.
Definition at line 24 of file InputSticker.hpp.
std::vector<std::string> tgbotxx::InputSticker::keywords |
Optional. List of 0-20 search keywords for the sticker with total length of up to 64 characters. For “regular” and “custom_emoji” stickers only.
Definition at line 31 of file InputSticker.hpp.
Ptr<MaskPosition> tgbotxx::InputSticker::maskPosition |
Optional. Position where the mask should be placed on faces. For “mask” stickers only.
Definition at line 27 of file InputSticker.hpp.
std::variant<cpr::File, std::string> tgbotxx::InputSticker::sticker {""} |
The added sticker.
Definition at line 21 of file InputSticker.hpp.