botman / docs

BotMan documentation
33 stars 53 forks source link

Send JS payload in JSON Responce #98

Open BetaStacks opened 5 years ago

BetaStacks commented 5 years ago

what is the best way to pass along some JS in my responses. Can I get something like the following code as a response?

"status": 200, "messages": [ { "type": "text", "text": "heard you 2", "script": "alert('Hello World');", "attachment": null, "additionalParameters": [] } ] }