22 nl::json json = nl::json::object();
32 void _fromJson(
const nl::json& json) {
#define OBJECT_SERIALIZE_FIELD_PTR(json, json_field, 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.
Base class for types of clickable areas on a story https://core.telegram.org/bots/api#storyareatype.
virtual void fromJson(const nl::json &json)
virtual ~StoryAreaType()=default
StoryAreaType(const nl::json &json)
std::string type
Type of the area.
virtual nl::json toJson() const
Story area pointing to a link.
nl::json toJson() const override
StoryAreaTypeLink(const nl::json &json)
void fromJson(const nl::json &json) override
Story area pointing to a location.
nl::json toJson() const override
Ptr< LocationAddress > address
StoryAreaTypeLocation(const nl::json &json)
void fromJson(const nl::json &json) override
Story area pointing to a suggested reaction.
StoryAreaTypeSuggestedReaction(const nl::json &json)
StoryAreaTypeSuggestedReaction()
Ptr< ReactionType > reactionType
void fromJson(const nl::json &json) override
nl::json toJson() const override
Story area pointing to a unique gift.
void fromJson(const nl::json &json) override
StoryAreaTypeUniqueGift()
StoryAreaTypeUniqueGift(const nl::json &json)
nl::json toJson() const override
Story area showing weather information.
nl::json toJson() const override
StoryAreaTypeWeather(const nl::json &json)
void fromJson(const nl::json &json) override
std::int32_t backgroundColor