K
K
kalamandi2021-01-11 18:06:25
In contact with
kalamandi, 2021-01-11 18:06:25

@vk-io/scenes how to go to next. scene only after the user's response?

Scene code:

sceneManager.addScenes([
  new StepScene('signup', [
    (context) => {
      if (context.scene.step.firstTime || !context.text) {
        context.send('A');
      }

      var neww = context.text;

      return context.scene.step.next();
    },
    async (context) => {
      await context.send(`${neww}`);

      return context.scene.step.next(); 
    }
  ])
]);

I need to make the bot go to the next scene only after the user's response.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question