I
I
Ivan2022-01-05 19:22:55
JavaScript
Ivan, 2022-01-05 19:22:55

How to find callback_query_id in Telegram API?

Hello. Please tell me how to find out the callback_query_id? Where to get it from? What variable is it in?

Here is the function. I put callbackQuery.id there - it doesn't work.

module.exports = async function (bot, message, query) { 
    if (query.data === "wordsnormal") {
        await message.send("Введите фразу исключение");
        await message.user.update({
            menu: "WordsBanTextNormal"
        });
        await bot.answerCallbackQuery(callbackQuery.id)
    }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan, 2022-01-05
@skapunker

id shnik here query.id

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question