Skip to content

What is the event for when you "like" a message? #1195

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

You must be logged in to vote

Telegram Updates Events: https://core.telegram.org/bots/api#update

You need to listen the "message_reaction" event.

Example of use:

const TelegramBot = require('node-telegram-bot-api');

const bot = new TelegramBot(TOKEN, {
    polling: {
        params: {
            "allowed_updates": JSON.stringify(["update_id", "message", "edited_message", "channel_post", "edited_channel_post", "inline_query", "chosen_inline_result", "callback_query", "shipping_query", "pre_checkout_query", "poll", "poll_answer", "my_chat_member", "chat_member", "message_reaction"])
        }
    }
});

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

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