MMRIZE / MMM-TelegramBot

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

fix: only init TB once #75

Closed CFenner closed 2 years ago

CFenner commented 2 years ago

When running multiple instances of the UI, you usually get an error like this:

1|mm  | [TELBOT] Error 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running

This is due to the fact, that each time the module is startet, the bot is initialized, even if it has been initialized by the module of another UI instance before.

This change prevents an initialization if the bot is already created.

bugsounet commented 2 years ago

I have push you purpose in dev branch Thx for your purpose I will see if I have some change and I commit it in master