Identifier of the chat
Data about the contains information about one member of a chat
True, if the user's presence in the chat is hidden
Identifier of the chat
Optional
isTrue, if the user is a member of the chat at the moment of the request
Optional
nickCustom title for this user
Represents the rights of an administrator in a chat
The member's status in the chat
Optional
untilDate when the user's subscription will expire; Unix time
Optional
userInformation about the user
The client that instantiated this
Return the member id
Date the user's subscription will expire
Date when the user's subscription will expire, in milliseconds
Protected
_cloneProtected
_updateUse this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the chat on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights.
Optional
options: Omit<{ Returns True on success.
Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights.
Unique identifier of the target sender chat
Returns True on success.
Checks if this member is equal to another member.
The other object to compare with.
True if both objects are instances of ChatMember and are equal based on key properties, otherwise false.
Fetches this ChatMember
Use this method to kick a user in a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the chat on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights.
Optional
options: Omit<{ Returns True on success.
Retrieves the permissions of the current member in a specific chat.
The identifier of the chat channel.
Optional
checkAdmin: booleanA flag to check if the member is an admin or creator.
The permissions object of the user in the chat or null if not available.
Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Pass False for all boolean parameters to demote a user.
An object for new user permissions
Optional
isAnonymous: booleanPass True if the administrator's presence in the chat is hidden
Returns True on success.
Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergroup for this to work and must have the appropriate administrator rights. Pass True for all permissions to lift restrictions from a user. Returns True on success.
An object for new user permissions
Optional
options: Omit<{ out parameters
Returns True on success.
Flatten an object. Any properties that are collections will get converted to an array of keys.
Optional
propsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Rest
...props: Record<string, string | boolean>[]Optional. Specific properties to include/exclude, or rename.
Flattened object.
Use this method to unban a previously banned user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work. By default, this method guarantees that after the call the user is not a member of the chat, but will be able to join it. So if the user is a member of the chat they will also be removed from the chat. If you don't want this, use the parameter only_if_banned.
Optional
onlyIfBanned: booleanDo nothing if the user is not banned
Returns True on success.
Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights.
Unique identifier of the target sender chat
Returns True on success.
The client that instantiated this