Answer the question
In order to leave comments, you need to log in
How to send an object to node.js?
I send a message using vk.api.messages.send(). It is sent, but I also pass in the message findOne mongo method.
vk.api.messages.send({
random_id: dateUTC,
peer_id: config.admins,
message: '[BOT] Пожалуйста, проверьте наличие оплаты у пользователя ' + message.senderId + '\n\nСпособ оплаты: ' + screen[1] + '\n' + String(spokes.findOne({userID: message.senderId})) + '\nИспользуйте команду /screen <Пользователь> <true/false>'
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question