Read the statement by Michael Teeuw here.
TelegramBot runs multiple times
-
I’m new to the Telegram module. I installed it and it works so far. But whens I’m developing on my modules, I typically run the Mirror UI on my laptop. This gives me than the following error:
1|mm | [TELBOT] Error 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is runningAlso the Telegram chat says that I must not run multiple bot instance.
How can I overcome this? Shouldn’t the bot be running on the mirror and not in my browser?
-
@cfenner
It doesn’t work on multi-instances. If you run two fronts ui at the same time, the error will happens.
How to overcome? Well, there be almost no solution for that.
Maybe you can modify node_helper.js not to execute one more instance from another front but I’m not sure that is what you really want. -
Maybe the
node_helpershould only be initialized for the first time: -
I have already try to allow multi insence but TB sever refuse it
So, I can’t do something for this -
@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.
-
@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 :)
-
@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)
-
@bugsounet thanks, i have no issues anymore.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login