42 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 a join request sent to a chat. https://core.telegram.org/bots/api#chatjoinrequest.
std::int64_t userChatId
Identifier of a private chat with the user who sent the join request. This number may have more than ...
std::string bio
Optional. Bio of the user.
ChatJoinRequest()=default
Ptr< User > from
User that sent the join request.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
Ptr< ChatInviteLink > inviteLink
Optional. Chat invite link that was used by the user to send the join request.
ChatJoinRequest(const nl::json &json)
Ptr< Chat > chat
Chat to which the request was sent.
nl::json toJson() const
Serializes this object to JSON.
std::time_t date
Date the request was sent in Unix time.