409 ETELGRAM Conflict: terminated by other getUpdates request; make sure that only one bot instance is running

280 views Asked by At

i created a telegram bot in node js node-telegram-bot-api and deployed in free hosting ** RENDER*

  • and this happened error: [polling_error] {"code":"ETELEGRAM","message":"ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"} but in console of my computer i didnt see this problem

How can i fix this error

i tried chanching API token of my telegram bot and changing github repository

2

There are 2 answers

1
Maxim Kurchinskyj On

I guess it's because you use the same bot token for dev and prod server. You should create in bot father different bots for dev and for the product server. If you use the same bot token in the product and dev server it might cause this problem

1
Manolo On

you are probably running your bot on the server already, then you attempted to run it again in your local Server, whichever way you're trying to run similar bot on multiple server at the same time. you need to run it from only one place