MMRIZE / MMM-TelegramBot

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

useWelcomeMessage does not disable the welcome message #59

Closed Unbekannt1998 closed 4 years ago

Unbekannt1998 commented 4 years ago

Hi, after the latest update or one in the last 12 commits cant tell exactly. But after my update the bot sends me the welcome Message even if useWelcomeMessage is set to false. My config:

{
      module: 'MMM-TelegramBot',
      config: {
        telegramAPIKey: 'XXX',
        allowedUser: [
          'XXX'
        ],
        adminChatId: XXX,
        useWelcomeMessage: false,
        commandAllowed: {},
        detailOption: {},
        favourites: [
          '/commands',
          '/modules',
          '/hideall',
          '/showall'
        ],
        customCommands: []
      }
    }

Kind regards

bugsounet commented 4 years ago

can't happen ... but maybe ... In all case, with @latest version i don't use MM default merging config, i use another since today.

But ... Maybe to you have an Mini-Welcome (without date of restarting) In this case TelegramBot have detected an Fatal Error (network failed, 401 UNAUTHORIZED, ...) So I Try to reconnect with sending mini-Welcome message for control (If it's that, i will try to do better)

I Try to solve all MMM-TelegramBot bug (many bug... and flooding error... and take many many place in MM log ... -> preserv in good condition)

Unbekannt1998 commented 4 years ago

thanks for the fast replay it probably is the mini-welcome but i see no errors in my log Screenshot from 2020-09-11 09-27-06 (the messages translate roughly to

I have awaken from deep sleep.

 Service provided by TelegramBot service

)

bugsounet commented 4 years ago

under coding ... I will do better :)

bugsounet commented 4 years ago

fixed with the last release

Unbekannt1998 commented 4 years ago

thank you my last message was not a intended to make you stress and rush things it was just intended to give you more info to fix the error and again thank for the fast fix will test rn and will send feedback

bugsounet commented 4 years ago

don't worry about this ! I'm not stressed !

Now with the last update, it will show the error find... in your case i think maybe internet missing

you can disable alert in config :)

I try to do the maximum with TelegramBot

again, telecast is now complete ;) TelegramBot can now read photo, video, audio, stickers, ...

See Readme and adjust your conf :)

Thx for your feedback @bugsounet

Unbekannt1998 commented 4 years ago

so after like a day i can say the last version fixed the issue and i don't get spammed with messages anymore thanks again for the quick fix. I use the bot mostly to administrate my mirror so i will probably not use the other option because my mirror is already cluttert with other stuff, so i will not use the other options even so I like the possibility for them.