Skip to content

Fix bot stopping mid-response on progress message deletion failure#107

Merged
RichardAtCT merged 1 commit intoRichardAtCT:mainfrom
guillaumegay13:fix/progress-msg-delete-crash
Feb 26, 2026
Merged

Fix bot stopping mid-response on progress message deletion failure#107
RichardAtCT merged 1 commit intoRichardAtCT:mainfrom
guillaumegay13:fix/progress-msg-delete-crash

Conversation

@guillaumegay13
Copy link
Copy Markdown
Contributor

The progress_msg.delete() call was unprotected in all agentic handlers (text, document, photo). If it throws (Telegram timeout, rate limit, message already deleted), the exception crashes the handler and the actual Claude response is never sent to the user. Wrap all three call sites in try-except so a deletion failure is logged but does not prevent delivering the response.

The progress_msg.delete() call was unprotected in all agentic handlers
(text, document, photo). If it throws (Telegram timeout, rate limit,
message already deleted), the exception crashes the handler and the
actual Claude response is never sent to the user. Wrap all three
call sites in try-except so a deletion failure is logged but does
not prevent delivering the response.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@RichardAtCT RichardAtCT merged commit a6a3c67 into RichardAtCT:main Feb 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants