D
D
Duzive2019-09-20 14:24:03
Python
Duzive, 2019-09-20 14:24:03

Vk API gives an error. How to fix?

Greetings. Now I wrote a function to remove a user from a conversation on a forwarded message.
Here is the function itself:

def kikuser():
  vk.method("messages.removeChatUser", {"peer_id": event.object.peer_id, "user_id": event.obj.reply_message, "random_id": 0})

When starting VKontakte, it gives an error:
5d84b696d90ad322363932.jpeg
I hope for your help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2019-09-20
@duzive

It is clearly written that chat_idit is not indicated.

S
Stockholm Syndrome, 2019-09-20
@StockholmSyndrome

in the messages.removeChatUser method, the parameter is called chat_id, and you just need to specify the conversation id without two billion

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question