S
S
Sergey Stadnik2019-11-29 12:46:37
Node.js
Sergey Stadnik, 2019-11-29 12:46:37

How to make the VK bot send a sticker?

There is a bot written in node js, how to make it send a sticker after any message? For example:
cmd.hear(/^(?:schedule|schedule|lesson schedule|schedule plz|show schedule|show schedule|show schedule|show schedule|which schedule|which schedule|which schedule?|which schedule?)$/i , async (message, bot) => {
message.user.foolder += 1;
return bot(`Schedule of lessons:`, {attachment: raspis.photo});
Code for sending a sticker
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pigeon1235, 2019-11-29
@nuriboy

vk.api.messages.send({
peer_id: msg.peerId
sticker_id: <айди стикера>
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question