You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closing — overlaps with the just-merged #28527 (salvage of #25280 'skip-STT audio path + 2GB cap via local Bot API server') and has fork-specific issues:
Duplicate mechanism: Both PRs add a configurable document-size cap. feat(telegram): skip-STT audio path + 2GB cap via local Bot API server #25280 uses an automatic 2GB cap when extra.base_url is set (presence of locally-hosted Bot API server is the opt-in). Your PR adds an explicit max_document_mb config. The 2GB-on-base_url approach is simpler — operators who configure a local Bot API already opt in via that.
Russian user-facing strings: The new size-limit error messages are in Russian ("Не смогла проверить...", "Документ слишком большой..."). Upstream needs English by default; localization should go through a translation layer.
Unrelated bundled commits: Your PR also adds tools/pdf_compress_tool.py (241 LOC) and tools/office_extract_tool.py (319 LOC) which are independent features deserving their own PRs.
The local Bot API file-copy optimization you mention in the summary IS still uncovered — that would be a clean follow-up PR. The English version of "document too large" error messaging would also be welcome. Thanks for the work.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
comp/gatewayGateway runner, session dispatch, deliverycomp/toolsTool registry, model_tools, toolsetsP2Medium — degraded but workaround existsplatform/telegramTelegram bot adaptertype/featureNew feature or request
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test Plan