39 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)
static constexpr const char * Type2Str[]
Type
Enum of possible types of a Sticker.
static constexpr Type Str2Type(const std::string &str)
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.
StickerSet(const nl::json &json)
void fromJson(const nl::json &json)
Deserializes this object from JSON.
bool isVideo
True, if the sticker set contains video stickers
std::string name
Sticker set name.
Sticker::Type type
Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”
bool isAnimated
True, if the sticker set contains animated stickers
nl::json toJson() const
Serializes this object to JSON.
std::vector< Ptr< Sticker > > stickers
List of all set stickers.