G
G
Gruapk2020-02-09 15:38:02
Python
Gruapk, 2020-02-09 15:38:02

Explain to a newbie. How to use messages.removeChatUser method in python?

How to use VK methods? You can explain, otherwise it does not reach my head.
More precisely, their syntax.
Desirable example with messages.removeChatUser

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
che_aa, 2020-02-09
@Gruapk

import vk_api
tocen = "<tocen>"
chat_id = <chat_id>
user_id = <user_id>
vk = vk_api.VkApi(token=token)
vk._auth_token()
vk.method("messages.removeChatUser",
    {
    "chat_id" : chat_id,
    "user_id" : user_id
    }
)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question