@lskjs/bots-plugin-notify
Version:
LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation
27 lines (21 loc) • 605 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.manual = manual;
exports["default"] = void 0;
function manual(message) {
if (this !== null && this !== void 0 && this.debug) this.log.trace('manual.message', message);
var options = {};
if (message.md || message.isMd) {
options.parse_mode = 'MarkdownV2';
} // const msg = `💬 \n\n${JSON.stringify(message)}`;
var msg = message.text || message.md;
return {
msg: msg,
options: options
};
}
var _default = manual;
exports["default"] = _default;
//# sourceMappingURL=ManualProvider.js.map
;