windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
259 stars 116 forks source link

Not all telegram messages are received #251

Closed nygma2004 closed 2 years ago

nygma2004 commented 2 years ago

This issue is happening for a while for me, and never managed to get to the bottom of it. I am using Node-Red 2.1.3 and telegrambot 10.0.9.

The issue simply is that some of the messages I send from the phone or the Telegram desktop app never arrive to the Node-Red: image I have a telegram receiver, connected to a debug node and I only see a single "test" message to which the flow also responded. But the other 4 messages are lost and never arrives. And it is a hit and miss. Sometimes, the server responds to the first message, sometimes the second, or third.

The bot node is set up for Polling with Poll Interval of 300.

windkh commented 2 years ago

Can you change the pollintervall to 1000 and let me know if something changed? Can you turn on verbose logging?

nygma2004 commented 2 years ago

I changed the interval to 1000 and it started working, getting all my messages. And after about 5 message it stopped again and skipped like 8-9 messages before getting the next one. Verbose logging should be turned on the bot configuration? And where do I see the log generated?

windkh commented 2 years ago

In the node-red console output

windkh commented 2 years ago

Can you please make sure that your token is only used in one configuration node and not in many.

nygma2004 commented 2 years ago

Yes, Yes, Thank you @windkh! Most probably because of import, export I have the configuration node duplicated 3 times. I deleted the extra configurations and reassigned the single configuration to all the telegram nodes and it seems to be working now.

I reset the polling period back to the default 300 and so far everything is looking good.

I will keep testing for a few days but for now I think the issue is resolved. I never though checking the configuration nodes.

windkh commented 2 years ago

Ok nice