paked / messenger

Package messenger is used for making bots for use with Facebook messenger
MIT License
274 stars 74 forks source link

Setting for Get Started button and Persist Menu #31

Closed Walpurisnacht closed 7 years ago

Walpurisnacht commented 7 years ago

I think we are missing implementation of Get Started button and Persist Menu setting. I'm setting it by extending your package, but who knows if this will be added to the framework?

Depado commented 7 years ago

Hi @Walpurisnacht Please take a look at this file, this allows to set up the Get Started button and the persistent menu. I'm already using that and it works fine ☺

For example :

    err = bot.Client.GreetingSetting("Hello World")
    err = bot.Client.CallToActionsSetting("existing_thread", mb)
    err = bot.Client.CallToActionsSetting("new_thread", sb)

Where mb is a []messenger.CallToActionsItem and sb is a []messenger.CallToActionsItem containing a single item.

Please tell me if that's unclear or if you need a more concrete example.

paked commented 7 years ago

Thanks @Depado.

I'm marking this as closed if there are no longer any issues.