Commit b70d1ef
authored
Don't drop pending Telegram updates on restart (#171)
The startup path (every `nerve restart` / daemon respawn goes through it)
called Updater.start_polling(drop_pending_updates=True), telling Telegram to
discard every update queued while the bot was offline. Any message a user
sent during the restart window was silently dropped and never redelivered.
Set drop_pending_updates=False so a restart replays the backlog Telegram
retains (~24h; the read offset only advances once we fetch them). This matches
the watchdog _rebuild() path, which already uses False.1 parent f1b0cff commit b70d1ef
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
336 | 344 | | |
337 | 345 | | |
338 | 346 | | |
| |||
0 commit comments