Skip to main content

Remove chat members

Removes users from the chat

Function RemoveChatMembers(Val Token, Val ChatID, Val Users) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringBot token
ChatID--chatidString, NumberChat ID
Users--membersString, Number, Array of String, NumberThe member or members of the chat room to remove

Returns: Map Of KeyAndValue - serialized JSON response from VK Teams


tip

Method at API documentation: GET /chats/members/delete


1C:Enterprise/OneScript code example
    Token  = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
User = 1011987091;

Result = OPI_VKTeams.RemoveChatMembers(Token, ChatID, User);
    oint vkteams RemoveChatMembers \
--token "***" \
--chatid "689203963@chat.agent" \
--members 1011987091
Result
{
"ok": true
}