How hide or delete button after click it ?
function newQuestion(msg){
if (count!==3) {
var arr = questions[count];
var text = arr.title;
var options = {
reply_markup: JSON.stringify({
inline_keyboard: arr.buttons,
parse_mode: 'Markdown',
})
};
chat = msg.hasOwnProperty('chat') ? msg.chat.id : msg.from.id;
bot.sendMessage(chat, text, options);
countMap.set(msg.from.id,countMap.get(msg.from.id)+1);
}
}
I've tried
"hide_keyboard: true"
But it didn't work.