Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    Unsolved Télédiffusion

    EXT-TelegramBot
    1
    2
    45
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      venditti69500 Donators last edited by

      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 🙏🏼

      1 Reply Last reply Reply Quote 0
      • V
        venditti69500 Donators last edited by venditti69500

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | @bugsounet ©2022