Answer the question
In order to leave comments, you need to log in
How to add to community emergency?
I'm trying to use vk-io and vk api to add a user to a group's emergency via vk.api.groups.ban(), it gives me an error:
vk.api.groups.ban({
owner_id: boardParametrs['fromId'],
reason: 3,
comment: 'ban-comment',
comment_visible: 1
})
Answer the question
In order to leave comments, you need to log in
And read and, if not clear, then translate the error? It says in plain text that this method does not work with the group token. And on the method page itself it is also written that it can only be called with a user token https://vk.com/dev/groups.ban
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question