L
L
Loyxim2020-07-23 22:08:45
Python
Loyxim, 2020-07-23 22:08:45

How to create a kick command for a VK bot in python?

How to create a kick command for a bot on VK? It is desirable to completely code, or at least a function

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LouisPython, 2020-07-24
@LouisPython

Hello! Too little information provided, how exactly the kick team will be arranged? But in fact: You need to get the user ID, then just call the VKontakte API method - `messages.removeChatUser` and pass in the parameters: chat_id - the identifier of the conversation, member_id - the identifier of the participant to be excluded from the conversation. For communities, the community ID with a minus sign. I advise you to first read the VKontakte documentation next time, and if you ask a question, leave more information.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question