Skip to content

How to listen when user react to message? #1186

Closed Answered by danielperez9430
mikenlanggio asked this question in Q&A
Discussion options

You must be logged in to vote

You need to include the message_reaction in the list of the allowed_updates list

This is a example of how to listing this event;

bot.on('message_reaction', (msg) => {
    const chatId = msg.chat.id;
    console.log(msg);
    bot.sendMessage(chatId, 'Received your reaction message');
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by danielperez9430
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants