G
G
Gruapk2020-09-15 17:00:06
In contact with
Gruapk, 2020-09-15 17:00:06

VK response error: one the parameters specified was missing or invalid what is the problem with this error?

How can this error be corrected?
5f60d1f76bb62294277364.jpeg

The code:

bot.on('spawn',() => {
 easyvk({access_token: token}).then(_vk => {
  vk = _vk;
  return vk.call("messages.send", {
   message: "Бот заспавнился",
   user_id: ud,
   random_id: easyvk.randomId()
  });
 });
 if (bot.currentWindow !== null) {
  easyvk({access_token:token}).then(_vk => {
   vk = _vk;
   return vk.call("messages.send", {
    message: "Закрыто окно",
    user_id: ud,
    random_id: easyvk.randomId()
   })
  })
  bot.closeWindow(bot.currentWindow)
 };
 if (digging == 1) {
  digging = 0
  easyvk({access_token: token}).then(_vk => {
  vk = _vk;
  return vk.call("messages.send", {
   message: "Бот прекратил копать.",
   user_id: ud,
   random_id: easyvk.randomId()
  });
 });
 }


Ps easyvk library

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
HemulGM, 2020-09-15
@HemulGM

One of the parameters required for the method is missing or an erroneous remark was specified

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question