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.