Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions gateway/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -15463,14 +15463,15 @@ async def _roll_progress_overflow_if_needed() -> bool:
if not result.success:
_err = (getattr(result, "error", "") or "").lower()
if "flood" in _err or "retry after" in _err:
# Flood control hit — disable further edits,
# switch to sending new messages only for
# important updates. Don't block 23s.
# Flood control hit — backoff but keep editing.
# Only disable edits for non-recoverable errors.
logger.info(
"[%s] Progress edits disabled due to flood control",
"[%s] Progress edit flood control, backing off",
adapter.name,
)
can_edit = False
_last_edit_ts = time.monotonic()
else:
can_edit = False
_flood_result = await adapter.send(
chat_id=source.chat_id,
content=msg,
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
"ysfalweshcan@gmail.com": "Junass1",
"bartokmagic@proton.me": "Bartok9",
"bartok9@users.noreply.github.com": "Bartok9",
"pepelax@users.noreply.github.com": "pepelax", # PR #25419 salvage (send_message TELEGRAM_PROXY)
"erhanyasarx@gmail.com": "erhnysr", # PR #25198 salvage (tool-progress flood-control)
"androidhtml@yandex.com": "hllqkb",
"25840394+Bongulielmi@users.noreply.github.com": "Bongulielmi",
"jonathan.troyer@overmatch.com": "JTroyerOvermatch",
Expand Down
Loading