Skip to content

Невозможно вызвать фукнцию next() у сцены #12

@talkincheap

Description

@talkincheap

В документации содержится этот фрагмент

const testScene = new Scene("test").step("message", async (context) => {
    if (context.scene.step.firstTime) return context.send("First message");

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

Исправленная версия:

const testScene = new Scene("test").step("message", async (context) => {
    if (context.scene.step.firstTime) return context.send("First message");

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

context.scene владеет функциями: enter, exit, params, reenter, state, step, update, но next находится внутри step

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions