Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

235
Views
how to use execute in node-vk-bot-api? why do I get promise { <pending> }?

How to get information using the users method.get using node-vk-bot-api? I don't understand how to work with execute. Why am I getting Promise { Pending }?

const token = "";
const VkBot = require("node-vk-bot-api"),
bot = new VkBot(token);

let id = msg.message.from_id
const response = bot.execute('users.get', {user_ids: id});
console.log(response) --> Promise { <pending> }

or


let id = msg.message.from_id
const api = require('node-vk-bot-api/lib/api');
let user = api('users.get', { user_ids: id, access_token: token });
console.log(user) --> Promise { <pending> }

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

bot.command('Дуров', async (test) => {
user = await bot.execute('users.get', {user_id: 1})
    console.log(test)
})
about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!