22 nl::json json = nl::json::object();
#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.
Describes a service message about a change in the price of direct messages sent to a channel chat....
DirectMessagePriceChanged(const nl::json &json)
nl::json toJson() const
Serializes this object to JSON.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::int64_t directMessageStarCount
Optional. The new number of Telegram Stars that must be paid by users for each direct message.
bool areDirectMessagesEnabled
True, if direct messages are enabled for the channel chat; false otherwise.
DirectMessagePriceChanged()=default