Skip to content
This repository was archived by the owner on May 10, 2020. It is now read-only.

How to effectively reset conversation. #7

@MartinBodocky

Description

@MartinBodocky

I have solution where I have four different use cases. I would like to keep header just change text.

This is inside one content div frame. I have tried to apply reset like following:
element.fbMessenger({
botName: '...
})
.fbMessenger('reset');

or after start:

element
.fbMessenger('start', { delay: 3000 })
.fbMessenger('reset')

or before run:
element
.fbMessenger('reset')
.fbMessenger('run', { timestamp: this.now, delay: 2000 });

All of those ends with error:
Error: Must call start before sending messages
at Function.error (eval at module.exports (http://localhost:4205/scripts.bundle.js:1:1), :253:9) [angular]
at b._checkWelcomeMessage (eval at module.exports (http://localhost:4205/scripts.bundle.js:1:1), :11:11579) [angular]
at b.message (eval at module.exports (http://localhost:4205/scripts.bundle.js:1:1), :11:16119) [angular]
at eval (eval at module.exports (http://localhost:4205/scripts.bundle.js:1:1), :11:27172) [angular]
at Object.onInvokeTask (http://localhost:4205/vendor.bundle.js:28650:37) [angular]
at ZoneDelegate.invokeTask (http://localhost:4205/vendor.bundle.js:85621:40) [angular]
at Zone.runTask (http://localhost:4205/vendor.bundle.js:85498:47) [ => angular]
at ZoneTask.invoke (http://localhost:4205/vendor.bundle.js:85692:33) []
at data.args.(anonymous function) (http://localhost:4205/vendor.bundle.js:86723:25) []

What am I doing wrong?

Thanks,

Martin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions