Use @Action
Last updated
Was this helpful?
Last updated
Was this helpful?
What is an action? It is a string of characters sent to the script, formed as follows:
action?nameAction=value
For example, we can use them if we want [create a persistent menu on Facebook Messenger] (), the JSON will be the following :
When the user clicks the Main Menu
button, an action?menu
message will be sent to the script, of course invisible to the user.
To start a function in the script, let's use the decorator @Action()
:
For example, with action?menu=game
, we can use the magic variable action