33 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR(json, json_field, field)
#define OBJECT_SERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field)
#define OBJECT_DESERIALIZE_FIELD_PTR(json, json_field, field, optional)
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Available objects: https://core.telegram.org/bots/api#available-types.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
#define OBJECT_DESERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field, optional)
#define OBJECT_SERIALIZE_FIELD_ENUM(json, enum_name, json_field, field)
static std::optional< Type > StringToType(const std::string &str) noexcept
Converts string to an enum Type.
Type
Enum of possible types of Type.
This object represents a sticker set. https://core.telegram.org/bots/api#stickerset.
Ptr< PhotoSize > thumbnail
Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format.
std::string title
Sticker set title.
Sticker::Type stickerType
Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”
StickerSet(const nl::json &json)
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::string name
Sticker set name.
nl::json toJson() const
Serializes this object to JSON.
std::vector< Ptr< Sticker > > stickers
List of all set stickers.