45 nl::json json = nl::json::object();
#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.
Represents an invite link for a chat. https://core.telegram.org/bots/api#chatinvitelink.
Ptr< User > creator
Creator of the link.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
bool createsJoinRequest
True, if users joining the chat via the link need to be approved by chat administrators.
std::int32_t memberLimit
Optional. The maximum number of users that can be members of the chat simultaneously after joining th...
std::string name
Optional. Invite link name.
nl::json toJson() const
Serializes this object to JSON.
std::time_t expireDate
Optional. Point in time (Unix timestamp) when the link will expire or has been expired.
bool isPrimary
True, if the link is primary.
ChatInviteLink(const nl::json &json)
std::string inviteLink
The invite link. If the link was created by another chat administrator, then the second part of the l...
std::int32_t pendingJoinRequestCount
Optional. Number of pending join requests created using this link.
bool isRevoked
True, if the link is revoked.