U
U
ummnichka2021-07-17 10:18:07
In contact with
ummnichka, 2021-07-17 10:18:07

How to get user text?

bot.hear('!!редакт',async(context)=>{
    vk.api.messages.send({
        peer_id: context.peerId,
        random_id: random(2,66666666),
        message: 'Никнейм?',
    }).then(()=>{
        vk.updates.on('message_new', async (context)=>{
            console.log(context);
        })
    })
})

In the code above, after entering the command, nothing happens. Tried to use await, didn't help, doesn't output anything.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question