You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way button clicks (aka. postbacks) are handled in other frameworks is with a postback:MYPOSTBACK handler at the message boundaries or in the state machine.
Downside being you'd need to define the buttons beforehand to send into reply_button but the method signature could be something like reply_button(message, buttons)
If you were so inclined, you could even write button factory methods like
Activity
davidmann4 commentedon Oct 11, 2016
also we need a smart way to handle button clicks ...hmmm
mraaroncruz commentedon Oct 13, 2016
The way button clicks (aka. postbacks) are handled in other frameworks is with a
postback:MYPOSTBACKhandler at the message boundaries or in the state machine.The messenger term for bubbles is Generic Templates. Bubbles may be misleading if you go with it. I thought you meant this https://developers.facebook.com/docs/messenger-platform/send-api-reference/sender-actions
bussi, aaron
mraaroncruz commentedon Oct 13, 2016
I like the second option with the hash. Good question about the buttons though.
They deserve their own type. Maybe you should just wrap them and make a couple different types.
Downside being you'd need to define the buttons beforehand to send into
reply_buttonbut the method signature could be something likereply_button(message, buttons)If you were so inclined, you could even write button factory methods like