https://pastebin.com/iTff3LEZ
TypeError: (intermediate value).enter is not a function
кинь код весь, что ты написал
const bot = new Telegraf(config.service.telegram_key) const scene0 = new WizardScene('scene0', ctx => { async ctx => { await ctx.replyWithQuiz( 'Вопрос 1 из 184\nКакой URL (адрес) необходимо ввести в адресную строку Chrome, чтобы открыть полностью пустую вкладку браузера?', ['about:add', 'about:blank', 'about:new'], { correct_option_id: 1 } ) }, async ctx => { await ctx.replyWithQuiz( 'Вопрос 2 из 184\nКакой URL что-то необходимо новый вопрос адресную строку Chrome, чтобы lorem ipsum?', ['about:add', 'about:blank', 'about:new'], { correct_option_id: 2 } ) } }) scene0.on('poll', ctx => { checkAnswer(ctx) return ctx.wizard.next() }) const stage = new Stage([scene0], { default: 'scene0' }) bot.use(session()) bot.use(stage.middleware()) bot.launch()
Обсуждают сегодня