B
B
bqio2018-10-31 14:54:01
API
bqio, 2018-10-31 14:54:01

How to call messages.removeChatUser method in VK API if chat_id is greater than 100000000?

await vk.api.call('messages.removeChatUser', {
    chat_id: chat, // 2000000006
    user_id: id
  })

context:
id: 0,
  conversationMessageId: 32068,
  peerId: 2000000006,
  peerType: 'chat',
  senderId: 253000185,
  senderType: 'user',
  createdAt: 1540986653,

Error:
Code №100 - One of the parameters specified was missing or invalid: chat_id should be less than 100000000
I need to kick a person from a conversation using api.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
Helow19274, 2018-10-31
@bqio

Just 6

V
Vadim Aliev, 2020-12-27
@Redfern89

it didn’t help me at all ((what to do at the moment? I enter the number 5 (I have peer_id 2000000005) - it dumps me with an error that there is no such user in the chat ((

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question