Repository navigation
feat: add skip_enrich_url to message send and update requests - #294
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015WLTK6efBFpF3RCYeuRCfg
yaziine
approved these changes
Nov 25, 2026
Merged
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.
CLA
Description of the pull request
The API accepts a top-level
skip_enrich_urlflag on send message, update message and partial update message. When it istrue, the server doesn't add a link preview to that message. The Java SDK had no way to send it.This adds a nullable
skipEnrichUrlbuilder field toMessageSendRequest,MessageUpdateRequestandMessagePartialUpdateRequest. It is serialized next tomessage, matching the API.Tests:
MessageSkipEnrichUrlTestchecks that each request body carries"skip_enrich_url":true. Ran it andScheduledMessageTestlocally on Corretto 11; both pass.Open gaps
🤖 Generated with Claude Code
https://claude.ai/code/session_015WLTK6efBFpF3RCYeuRCfg
Note
Low Risk
Additive optional JSON field on message request builders with unit tests; no auth or breaking API changes.
Overview
Adds nullable
skipEnrichUrlbuilder support on message send, update, and partial update requests so the Java SDK can send the API’s top-levelskip_enrich_urlflag (same shape as existing flags likeskip_push). When set totrue, the server is asked not to attach a link preview for that operation.MessageSkipEnrichUrlTestasserts the serialized request bodies include"skip_enrich_url":truefor all three flows.Reviewed by Cursor Bugbot for commit 0a8669c. Bugbot is set up for automated code reviews on this repo. Configure here.