mast/telegram-bot-api

Sudden error after getUpdates

Alcotana opened this issue · 5 comments

screenshot_134

What has happened? I cannot start the server, because of the error.

As far as I remember, I did npm update telegram-bot-api just before.

Is this the problem of telegram-bot-api?

fluse commented

i get this error too.

mast commented

I checked my test script for getUpdates and it works for me.
Could you please locate place in your code where this happens and share it?

fluse commented

Hey mast.

.on('inline.callback.query' will fire .on('message' too

so you get inside on('message an different object where message.chat.id is not under the same dot notation.

and if you create an error inside message will throw this promise error

mast commented

and if you create an error inside message will throw this promise error

not sure I get you here..

Is the following true?

Due to wrong chat.id extraction, you send message to wrong chat (with empty chat_id probably), that's why you receive HTTP 400 back from Telegram servers? It sounds like bug in your code then.

mast commented

Closing issue as not reproducible