imba/imba

More than one bot are sending requests after changes

Open

#676 aberto em 1 de jun. de 2022

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (188 forks)batch import
help wantedquestion

Métricas do repositório

Stars
 (6.171 stars)
Métricas de merge de PR
 (Mesclagem média 2h 7m) (1 fundiu PR em 30d)

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