api.addChatMember()
Adds a new member to a chat. Members can't be added to private or secret chats
Parameters
AddChatMemberParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | Chat identifier |
userId | number | Identifier of the user |
forwardLimit | number | The number of earlier messages from the chat to be forwarded to the new member; up to 100. Ignored for supergroups and channels, or if the added user is a bot |