elbekD / kt-telegram-bot

Telegram Bot Library for Kotlin language
MIT License
103 stars 19 forks source link

How to run same telegram bot twice or more times? #59

Open svagh opened 1 year ago

svagh commented 1 year ago

I've a problem with running two or more same bots with same token. The follow error message occurs:

TelegramApiError(code=409, description=Conflict: terminated by other getUpdates request; make sure that only one bot instance is running)

I'd used another bot engine before and it can run with multiple instances with same token and same code. So if one instance will go offline for some reasons second one can continue to process messages. Is it safe to keep running same bots with same token while this error message occurs? If yes case, how can I remove it? Any advice will be useful.