UNPKG

@ebonydevcopy/framework

Version:

A module-based NodeJS chatbot framework.

18 lines 755 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isNotifyInteraction = exports.isSenderActionInteraction = exports.isMessageInteraction = void 0; function isMessageInteraction(interaction) { return interaction.type === 'message'; } exports.isMessageInteraction = isMessageInteraction; function isSenderActionInteraction(interaction) { return (interaction.type === 'typing_on' || interaction.type === 'typing_off' || interaction.type === 'mark_seen'); } exports.isSenderActionInteraction = isSenderActionInteraction; function isNotifyInteraction(interaction) { return interaction.type === 'notify'; } exports.isNotifyInteraction = isNotifyInteraction; //# sourceMappingURL=interactions.js.map