claudiajs / claudia-bot-builder

Create chat bots for Facebook Messenger, Slack, Amazon Alexa, Skype, Telegram, Viber, Line, GroupMe, Kik and Twilio and deploy to AWS Lambda in minutes
https://claudiajs.com/claudia-bot-builder.html
MIT License
1.84k stars 253 forks source link

Cannot add 'default_action' to Facebook generic template #119

Closed niponchi closed 6 years ago

niponchi commented 6 years ago

I would like to add default_action to Facebook generic template, like the code below.

    const generic = new fbTemplate.Generic();

    return generic
      .addBubble('Claudia.js', 'Deploy Node.js microservices to AWS easily')
        .addUrl('https://claudiajs.com')
        .addImage('https://claudiajs.com/assets/claudiajs.png')
        .addDefaultAction('https://github.com/claudiajs/claudia-bot-builder')
        .addButton('Say hello', 'HELLO')
        .addButton('Go to Github', 'https://github.com/claudiajs/claudia')
      .get()

stojanovic commented 6 years ago

Would you like to try to send PR for this?

stojanovic commented 6 years ago

It's on NPM, version 4.2.0. Can you just add this to the documentation?

Thanks again.

stojanovic commented 6 years ago

Thanks