You could shuffle your json object whenever your button is pressed. And the previous message gets deleted.
This would be done like this:
bot.action('callback_data', (ctx) => {
ctx.deleteMessage()
var json
// Shuffle json
ctx.telegram.sendMessage(ctx.chat.id, `${json}`, {
reply_markup: {
inline_keyboard: [
[{text: "Settle", callback_data: "callback_data"}]
]
}
})
})
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…