Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootbot Request #177

Open
Scylin232 opened this issue May 24, 2019 · 0 comments
Open

Bootbot Request #177

Scylin232 opened this issue May 24, 2019 · 0 comments

Comments

@Scylin232
Copy link

I have a part of code:

bot.on('postback:PERSISTENT_MENU_CON', (payload, chat) => {
   chat.say('*Thats must be some contacts*');
   chat.say('You can right your contact request here:')
   bot.on('message', (payload, chat) => {
     const text = payload.message.text;
     chat.say('Your request sended!');
     console.log(`Request from Contacts: ${text}`)
   });
});

And i have this part:

bot.on('postback:PERSISTENT_MENU_ANT', (payload, chat) => {
   chat.say('Write your question here:')
   bot.on('message', (payload, chat) => {
     const text = payload.message.text;
     chat.say('Your question sended!');
     console.log(`Question from User: ${text}`)
   });
});

They intertwine, asking several times how to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant