Data about the represents a join request sent to a chat
User that sent the join request
OptionalbioBio of the user
Chat to which the request was sent
Date the request was sent in Unix time
OptionalinviteChat invite link that was used by the user to send the join request
Identifier of a private chat with the user who sent the join request. The bot can use this identifier for 5 minutes to send messages until the join request is processed, assuming no other administrator contacted the user.
The client that instantiated this
Date the request was sent
Return the timestamp request was sent, in milliseconds
Protected_Protected_ProtectedPatches the current instance with new data
The data to patch the instance with
The patched data
Protected_ProtectedUpdates the current instance with new data and returns a clone of the updated instance
The data to update the instance with
A clone of the updated instance
Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right.
Returns True on success.
Use this method to decline a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right.
Returns True on success.
Flatten an object. Any properties that are collections will get converted to an array of keys.
OptionalpropsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Optional. Specific properties to include/exclude, or rename.
Flattened object.
Returns the id instance Chat, User, ChatMember and other
The client that instantiated this