bots-node-sdk icon indicating copy to clipboard operation
bots-node-sdk copied to clipboard

Question: How to use NonRawMessage methods?

Open antepetkovic0 opened this issue 1 year ago • 0 comments

Hey guys,

I'm currently working on some custom webhook integration and plan is to switch from deprecated MessageModel to MessageFactory. Creating inbound messages (that will be sent to DA skill) work as intendend. However, I struggled a bit with outbound messages (received from DA skill). Previously I was extracting on my own all actions, globalActions, header and footer text. Now I saw there are already defined methods for it within NonRawMessage class but I don't know right way to call it.

new NonRawMessage().getGlobalActions(); does not except any argument and not quite sure how should I or should I pass somehow message payload to class constructor

Thanks in advance, Kind regards

antepetkovic0 avatar Jun 11 '24 08:06 antepetkovic0