add a callback to telegram-bot inline_keyboard to count button clicks – Telegram API
I am making a telegram-bot in NodeJS. This is a code snippet I am having an issue with: let counter = 0 bot.onText(/flexbox (.+)/i, async (msg, match) => { console.log(msg) console.log(match) const chatId = msg.chat.id; bot.sendMessage(msg.from.id, 'Original Text', { reply_markup:…