imba/imba

More than one bot are sending requests after changes

Aberta

#676 aberto em 1 de jun. de 2022

 (0 comentário) (0 reação) (0 responsável)JavaScript (188 forks)batch import
help wantedquestion

Métricas do repositório

Stars
 (6.171 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Imba Version: 2.0.0-alpha.208

Details

I'm writing a Telegram Bot with Imba, but I'm getting an error while updating the source code. This doesn't happen when I write the same bot with JavaScript and run it with nodemon.

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

Expected Behavior

There should be only one bot instance running.

Actual Behavior

More than one bot are making requests to Telegram's API.

Possible Fix

I think watchers should be reseted as in nodemon/watch.js.

Steps to Reproduce

You can find both version of the bot in mrti259/imba-bug and run them with npm start.

Guia do colaborador