S
S
Sanders Rocket2020-04-29 19:56:22
JavaScript
Sanders Rocket, 2020-04-29 19:56:22

How to auto-kick a conversation?

Essence of the question: How to make an auto-kick from the conversation, that is, if a person leaves the conference, then he is kicked automatically.
You can use the code (easyvkapi I use) or the algorithm

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dvadvaa, 2020-04-29
@sandersik

On the vk-io library.

vk.updates.on(['chat_kick_user'], async ctx => {
    await vk.api.messages.removeChatUser({
        chat_id: ctx.peerId - 2000000000,
        member_id: ctx.eventMemberId
    });
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question