Stage()
const scene = new Scene('get-name')
scene.enter(ctx => ctx.reply('What is your name?'))
scene.on('message', ctx => ctx.reply(`Hi, ${ctx.message.text}`))
stage.command('name', ctx => ctx.scene.enter('get-name'))
stage.register(scene)
bot.use(stage)
get-name, (ctx)
i did not get anythng i send /name but no bot did not show anymessage and there is no errors in the console
i am done with this i do it but how if i want canscel ? i try : stage.command('cancel', async ctx => { getCommand.leave((ctx) => ctx.reply('*Done Cancel*', Extra.markdown())) }) but not Canceling
Обсуждают сегодня