MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    TelegramBot runs multiple times

    Scheduled Pinned Locked Moved Solved Troubleshooting
    8 Posts 3 Posters 2.5k Views 3 Watching
    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.
    • CFennerC Offline
      CFenner
      last edited by

      Maybe the node_helper should only be initialized for the first time:

      https://github.com/bugsounet/MMM-TelegramBot/blob/d569c7ee9d22c7ff7618b67101cf68ad7b93106e/node_helper.js#L424

      bugsounetB 1 Reply Last reply Reply Quote 0
      • bugsounetB Offline
        bugsounet Banned @CFenner
        last edited by

        I have already try to allow multi insence but TB sever refuse it
        So, I can’t do something for this

        CFennerC 1 Reply Last reply Reply Quote 0
        • CFennerC Offline
          CFenner @bugsounet
          last edited by

          @bugsounet Just to clarify, I think we don’t need multiple bot instances, just reuse one bot instance from multiple UI instances.

          I files a PR for prevent re-initialization if there is already a bot.

          bugsounetB 2 Replies Last reply Reply Quote 0
          • bugsounetB Offline
            bugsounet Banned @CFenner
            last edited by

            @cfenner I have commit for purpose un dev branch, I will see main code maybe I will made some change this week.

            Naturally, I will push it soon ;)

            Thx for your purpose :)

            1 Reply Last reply Reply Quote 0
            • bugsounetB Offline
              bugsounet Banned @CFenner
              last edited by bugsounet

              @cfenner: pushed in master with v1.4.0

              • Added: Your purpose code
              • Added: Protect for duplicate message
              • ToFix: Screenshot with scrot prog (scrot don’t return the last file link)
              CFennerC 1 Reply Last reply Reply Quote 0
              • CFennerC Offline
                CFenner @bugsounet
                last edited by

                @bugsounet thanks, i have no issues anymore.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy