Skip to content

Sending replies in sequential execution order #39

Open
@aminebenkeroum

Description

@aminebenkeroum

Hello everyone,

I am currently splitting my replies into an array, because the length is superior to 320, but I can't send them in order :

let answers = currentQuestion.answer.split("\n"); answers.forEach( (answer) => { reply({"text": answer}, (err) =>{ })

In Messenger, I'm receiving them in a random order, I looked a bit around Promises, is there any way I can use them ?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions