botstackjs icon indicating copy to clipboard operation
botstackjs copied to clipboard

Handle "Unknown message" module:"botstack:fallback"

Open cama opened this issue 9 years ago • 0 comments

Background...

fallback(message, senderID) { log.debug("Unknown message", { module: "botstack:fallback", senderId: senderID, message: message }); //fb.reply(fb.textMessage("Ops, internal short circuit... Shutting down... :("), senderID);* ----why does it happen that when this line is active it loops constantly?* };

This happens when Facebook sends messages that BotStackJS not yet able to handle correctly. Typically, this is a service message from facebook.

cama avatar Mar 28 '17 04:03 cama