EventHandler is typically invoked when there is an event such as - if you test your bot using the proxy bot or if the bot joins a group. But if you want to get user's response in the EventHandler then you will have to make a call to this function explicitly from the MessageHandler function.
Sample -
function MessageHandler(context, event)
{
EventHandler(context, event);
}
Comments
2 comments
The Message vs Event functions need to be explained more clearly.
What sort of events are triggered along with the values for the context/event object passed (and channel specific differences) need to be better explained.
Hi Shahed,
I am sending you a guide which will resolve all of your queries, have a look at it.
Link-https://www.gupshup.io/developer/docs/bot-platform/guide/intro-to-gupshup-bot-builder
Please sign in to leave a comment.