Four paths still posted more than MAX_SPLIT_MESSAGES messages for one reply
(#152012, review of #153476):
- Telegram rich refused: the legacy MarkdownV2 fallback (send() and the
legacy tail after some rich parts landed) recounts its chunks and hands
the whole reply off as a file; landed parts are deleted only after the
upload is confirmed (helpers.hand_off_split).
- Commentary: the stream consumer's own sends are reply pieces it counts
itself (reply_file_off around run()); a complete commentary message opts
back in, so a finished answer delivered as commentary goes out as a file
and still dedups against the final.
- Discord standalone (hermes send / send_message / cron REST fallback): the
complete text is uploaded as one .md before it is split
(StandaloneSendPolicy.reply_file_over); the REST sender honours 429
retry_after and X-RateLimit-Reset-After, and builds URLs from discord.py's
Route.BASE.
- Segment boundary: a file delivered at a segment break is recorded in the
durable segment history, so an equal final is not uploaded a second time.
_send_with_retry also no longer re-tries the upload inside its own messages
fallback.