yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.12k stars 1.49k forks source link

Occasionally not receiving message update #1181

Open 0xSorcerer opened 3 months ago

0xSorcerer commented 3 months ago

Bug Report

I have read:

I am using the latest version of the library.

Expected Behavior

I am using bot.on('message') to receive updates when a user joins / leaves a supergroup.

Actual Behavior

Sometimes the message update is not received by the bot. This occurs much more often when other bots (especially bot management bots such as Rose) are in the group and remove the join / leave messages. I initially thought the problem could've been caused by the polling mechanism, with other bots removing messages and the update request not containing the deleted messages. I shifted towards websocket but still the error persists.

Steps to reproduce the Behavior

Add a .on('message') event to your bot with a single console log for debug. Add your bot and Rose or Safeguard to a telegram group and try joining and leaving several times.

Feature Request

I have:

Introduction

Example

Question