|
tgbotxx 1.1.9.2
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. | |
| void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| std::variant< cpr::File, std::string > | sticker {""} |
| The added sticker. | |
| std::string | format |
| Format of the added sticker, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, “video” for a .WEBM video. | |
| std::vector< std::string > | emojiList |
| List of 1-20 emoji associated with the sticker. | |
| Ptr< MaskPosition > | maskPosition |
| Optional. Position where the mask should be placed on faces. For “mask” stickers only. | |
| 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. | |
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 53 of file InputSticker.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 38 of file InputSticker.hpp.
| std::vector<std::string> tgbotxx::InputSticker::emojiList |
List of 1-20 emoji associated with the sticker.
Definition at line 27 of file InputSticker.hpp.
| std::string tgbotxx::InputSticker::format |
Format of the added sticker, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, “video” for a .WEBM video.
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 34 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 30 of file InputSticker.hpp.
| std::variant<cpr::File, std::string> tgbotxx::InputSticker::sticker {""} |
The added sticker.
Definition at line 21 of file InputSticker.hpp.