Repository navigation
telegram: require strict numeric reply_to_message_id parsing - #37251
Closed
shuofengzhang wants to merge 5 commits into
Closed
shuofengzhang wants to merge 5 commits into
shuofengzhang wants to merge 5 commits into
Conversation
Contributor
Greptile SummaryThis PR tightens The implementation:
Tests comprehensively cover valid IDs, non-numeric strings, decimals, negatives, zero, whitespace, and null/undefined inputs. Existing scoped thread-id behavior (e.g., Confidence Score: 5/5
Last reviewed commit: 297249d |
shuofengzhang
force-pushed
the
fix/telegram-replyto-strict-id
branch
from
March 6, 2026 06:36
297249d to
15fe9e1
Compare
shuofengzhang
force-pushed
the
fix/telegram-replyto-strict-id
branch
from
March 15, 2026 11:22
15fe9e1 to
50c9332
Compare
shuofengzhang
force-pushed
the
fix/telegram-replyto-strict-id
branch
from
March 15, 2026 15:15
5b354c6 to
2fe52b5
Compare
shuofengzhang
force-pushed
the
fix/telegram-replyto-strict-id
branch
3 times, most recently
from
March 30, 2026 00:12
637a4db to
27fd093
Compare
shuofengzhang
force-pushed
the
fix/telegram-replyto-strict-id
branch
from
March 30, 2026 00:20
27fd093 to
485e11d
Compare
shuofengzhang
force-pushed
the
fix/telegram-replyto-strict-id
branch
from
March 30, 2026 23:36
485e11d to
957e50b
Compare
(cherry picked from commit 8d4040a)
8 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changed
parseTelegramReplyToMessageIdso it only accepts fully numeric, positive integer strings."123abc","12.3","-12", and"0"are ignored instead of being partially parsed.src/telegram/outbound-params.test.tsto cover valid/invalid reply IDs and preserve scoped thread-id behavior.Why
reply_to_message_idmust be a valid numeric message id.parseIntdirectly accepted partially numeric strings (e.g."123abc" -> 123), which can cause downstream Telegram send errors and confusing behavior.Testing
scripts/clone_and_test.sh openclaw/openclaw16 passed)npx vitest --run src/telegram/outbound-params.test.ts4 passed)