Developers » API methods » Messages » messages.addChatUser
Adds a new user to a chat.
This method can be called with a user token received in Standalone-app via Implicit Flow. Access rights required: messages.
chat_idChat ID.
positive number, required parameter, maximum value 100000000
user_idID of the user to be added to the chat.
positive number
positive number, maximum value 1000
Returns 1.
103Out of limits
925You are not admin of this chat
932Your community can't interact with this peer
936Contact not found
939Message request already sent
945Chat was disabled
946Chat not supported
947Can't add user to chat, because user has no access to group
Global errors can occur while running. See their descriptions on this page.