@@ -138,27 +138,11 @@ await sdk.messages.sendMessage({
138138
139139### Text styles & animations
140140
141- Requires Private API.
142-
143- ``` typescript
144- // Bold a range
145- await sdk .messages .sendMessage ({
146- chatGuid: " iMessage;-;+1234567890" ,
147- message: " This is bold text" ,
148- textStyles: [{ start: 8 , end: 12 , bold: true }],
149- });
150-
151- // Character animation (whole message)
152- await sdk .messages .sendMessage ({
153- chatGuid: " iMessage;-;+1234567890" ,
154- message: " Ripple wave!" ,
155- textAnimation: " ripple" ,
156- });
157- ```
158-
159- ** Text style properties** (per range): ` start ` , ` end ` , ` bold ` , ` italic ` , ` underline ` , ` strikethrough `
160-
161- ** Text animations** : ` big ` , ` small ` , ` shake ` , ` nod ` , ` explode ` , ` ripple ` , ` bloom ` , ` jitter `
141+ <Note >
142+ Text styles and animations are not supported by the legacy SDK. Use
143+ [ ` @photon-ai/advanced-imessage ` ] ( /advanced-kits/imessage/messages ) for rich
144+ text formatting and message effects.
145+ </Note >
162146
163147### Reactions
164148
@@ -416,7 +400,7 @@ try {
416400 chatGuid: " iMessage;-;+1234567890" ,
417401 message: " Hello!" ,
418402 });
419- } catch (error ) {
403+ } catch (error : any ) {
420404 if (error .response ?.status === 404 ) {
421405 console .error (" Chat not found" );
422406 } else if (error .response ?.status === 401 ) {
0 commit comments