Files
hermes-agent/contributors/emails/luist.webdesigner@gmail.com
zeta92 946e1d4a83 fix(telegram): retry a stalled inbound getFile instead of losing the attachment
Every inbound get_file()+download site (photo, voice/audio/video, image/video/generic
document, sticker, observed and replied-to media) was single-attempt, so one stalled
getFile read (PTB TimedOut) lost the attachment. The fetch is a pure read, so it now
retries as one unit (2s, 5s) on transport errors; BadRequest/auth/pool timeouts stay final.
The helper lives in telegram_media_fetch.py (adapter.py shrinks).

Fixes #150861, fixes #47093.
Salvages #150862 (@zeta92); supersedes #47160 (@Pluviobyte).

Co-authored-by: Pluviobyte <Pluviobyte@users.noreply.github.com>
2026-11-10 14:41:04 -08:00

2 lines
7 B
Plaintext