Skip to content

Fix multi WizardStep#1262

Open
ron-tayler wants to merge 2 commits intonksmnf:mainfrom
ron-tayler:main
Open

Fix multi WizardStep#1262
ron-tayler wants to merge 2 commits intonksmnf:mainfrom
ron-tayler:main

Conversation

@ron-tayler
Copy link
Copy Markdown

Don't work:

@WizardStep(2)
@WizardStep(3)
async invalidInput(@Ctx() ctx: WizardContext) {
  await ctx.reply('❌ Invalid Format. Please, try now.');
}

Work, but bad code style:

@WizardStep(2)
async invalidInput2(@Ctx() ctx: WizardContext) {
  await ctx.reply('❌ Invalid Format. Please, try now.');
}

@WizardStep(3)
async invalidInput3(@Ctx() ctx: WizardContext) {
  await ctx.reply('❌ Invalid Format. Please, try now.');
}

Add in this Pull-Request, good style:

@WizardStep(2, 3)
async invalidInput(@Ctx() ctx: WizardContext) {
  await ctx.reply('❌ Invalid Format. Please, try now.');
}

…бновил декоратор WizardStep для приема нескольких шагов и модифицировал обработку шагов в listeners-explorer.service.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant