Closed benkio closed 3 years ago
It looks like you launch multiple bots with the same token. Can you check that?
I'll check ASAP, but each bot has it's own resource folder. I'll put a println
and let you know.
I checked and they actually were picking up the same bot.token
file.
Customizing the name of the file solved the issue.
Closing :pray:
Hi, I write this issue to ask if there's a way to run multiple bots using a single entrypoint:
I have a multi sub-module project organized in this way:
Telegramium is used into the
commonLib
that's shared between all the sub module bots and then themain
module should run all the bots in a single entrypoint. Each sub-module also has its own main and if I runsbt bot1/run & sbt bot2/run
they work without problems, but if I trysbt main/run
I got this error:What should I do in order to run all the bot at once into the
main
? I expect I need to change some configuration and pass a custom one to each bot in order to avoid clashes/collisions in the connection, or something like that :pray: