MMRIZE / MMM-TelegramBot

TelegramBot module for remote-controlling MagicMirror
MIT License
26 stars 8 forks source link

Telecast Errors #39

Closed semyag closed 4 years ago

semyag commented 4 years ago

Hello all! Currently im getting an error message in the DEV Console when trying to telecast and the messages are not popping up. image

I tested out a few commands, sent out notifications, took a screenshot. Made sure privacy mode was off for the bot however only thing that seems to fail is the telecast. Attaching config in case its something I missed API keys and names replaced.

{ module: 'MMM-TelegramBot', config: { position: "center", telegramAPIKey : '****', allowedUser : ['*'], adminChatId : '*****', allowedUser: ["**"], useWelcomeMessage: true,

telecast: "*******", // true or chat_id
telecastLife: 60,
telecastLimit: 5,
telecastHideOverflow: false,

commandAllowed: { "telecast": ["**"], "mychatid": ["**"], "modules": ["*****"], } } },

bugsounet commented 4 years ago

telecastLife: 60,

means 60ms and chat will be disappeared but ... do you want really 60ms !?

semyag commented 4 years ago

Okay, you got me there, SO I upped it to 10000MS just to make sure that wasnt it. Still getting that error message only happens when I send a telecast. Also uppded the telecastlimit to 500.

bugsounet commented 4 years ago

i will inspect

semyag commented 4 years ago

Thanks! If you need more details or anything let me know.

bugsounet commented 4 years ago

hi, inspected, there is some bug but not related to your issue

I think it's just because, you dont set the position of the module

sample

    {
      module: "MMM-TelegramBot",
      position: 'top_center',
      config: {
        telegramAPIKey : "xxx",
        allowedUser : ["bugsounet"], // This is NOT the username of bot.
        adminChatId : xxx,
        telecast: xxx,
        useWelcomeMessage: false,
        verbose: false,
      }
    },

and in your config: you have set the position of the module inside the config {}

{
   module: 'MMM-TelegramBot',
   config: {
     position: "center",
     ...
   }
},