ctx.reply(`Enter an amount`, Markup.keyboard([ ["C", "Remove"], ["7", "8", "9"], ["4", "5", "6"], ["1", "2", "3"], [".", "0", "Send"] ]).oneTime()); When the user clicks on any button, the response is sent immediately.
Question: How can I make it send only when the submit button is clicked? And when clicking on numbers, the answer was written either to its input field, or in a separate input field?
I didn't exactly understand your question, but for the first question, you can achieve what you want with Wizard scene, You can learn more about Wizard from this link: https://github.com/telegraf/telegraf/issues/705. For the second question, you can save btns data in session