let prev_command = ""
bot.command('test', (ctx) => {
ctx.reply("Send your text in chat.")
prev_command = "test"
});
bot.on('text', (ctx) => {
if (prev_command == "test") {
ctx.reply(`Ok, your text '${ctx.message.text}'`)
} else {
ctx.reply("Sorry, usage commands!")
}
})