mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-04 10:22:33 +00:00
fix(telegram): change drop_pending_updates to False on startup (#2686)
This commit is contained in:
parent
5d2a13db6a
commit
e747d32dda
@ -310,7 +310,7 @@ class TelegramChannel(BaseChannel):
|
||||
# Start polling (this runs until stopped)
|
||||
await self._app.updater.start_polling(
|
||||
allowed_updates=["message"],
|
||||
drop_pending_updates=True # Ignore old messages on startup
|
||||
drop_pending_updates=False # Process pending messages on startup
|
||||
)
|
||||
|
||||
# Keep running until stopped
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user