This Forum is now reserved to registred users!
Unsolved Télédiffusion
-
hello everybody, I am looking at Telegrambot.js to dissect a little of everything it is capable of doing. there is a function for jarvis to be able to send a broadcast message himself following an incoming notification from a module, isn’t it ?
Thanks Tom your intention -
I thought somethings like that if someone see what i tryed
one “with-TelegramBot.js” exemple,var recipe { commands: { "selfiecustommsg": { moduleExec: { module: ["MMM-TelegramBot"], exec: (module, noti) => { if (noti.notification == "SELFIE_SHOOT") { return handler.reply('TELBOT_TELL_ADMIN', "Temperature is too high") } } } } }, plugins: { onNotificationReceived: "selfiecustommsg" } } exports.recipe = recipe
or
customCommands: [ { command: "selfiecustommsg", description: "Show msg when selfieshoot", callback: (command, handler, self) => { if (handler.args) { if (noti.notification == "SELFIE_SHOOT") { return handler.reply("TEXT", "Wow canon") } } } } ]
if someone have similar recipe or can help me how to make a design custom TelegramBot command to react himself at notification like a pir, button, or other module incoming notification.
Thak you all.