S
S
scriptnet hello2020-04-26 19:52:00
In contact with
scriptnet hello, 2020-04-26 19:52:00

How to reply to a sticker?

I need a node.js bot to respond to the stickers that are sent to
it. Here is the code how I tried to respond to the sticker
updates.on(['sticker'], async (message, next) => {
message.send(`kkk `)
})

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladlen Hellsite, 2020-04-27
@scriptnet

updates.on('new_message', async (message, next) => {
    if (message.hasAttachments('sticker')) {
        await message.send(`kkk`)
    }
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question