Messages
Messages are individual communications within a chat thread.
Messages can include text, media attachments, rich link previews, special effects (like confetti or fireworks), and reactions. All messages are associated with a specific chat and sent from a phone number you own.
Messages support delivery status tracking, read receipts, and editing capabilities.
Rich Link Previews
Send a URL as a link part to deliver it with a rich preview card showing the
pageโs title, description, and image (when available). A link part must be the
only part in the message โ it cannot be combined with text or media parts.
To send a URL without a preview card, include it in a text part instead.
Limitations:
- A
linkpart cannot be combined with other parts in the same message. - Maximum URL length: 2,048 characters.
Send a message to an existing chat
Get messages from a chat
ModelsExpand Collapse
type SentMessage struct{โฆ}A message that was sent (used in CreateChat and SendMessage responses)
A message that was sent (used in CreateChat and SendMessage responses)
Parts []SentMessagePartUnionMessage parts in order (text, media, and link)
Message parts in order (text, media, and link)
type TextPartResponse struct{โฆ}A text message part
A text message part
Reactions []ReactionReactions on this message part
Reactions on this message part
Handle ChatHandle
Service ServiceTypeMessaging service type
Messaging service type
Type ReactionTypeType of reaction. Standard iMessage tapbacks are love, like, dislike, laugh, emphasize, question.
Custom emoji reactions have type โcustomโ with the actual emoji in the custom_emoji field.
Sticker reactions have type โstickerโ with sticker attachment details in the sticker field.
Type of reaction. Standard iMessage tapbacks are love, like, dislike, laugh, emphasize, question. Custom emoji reactions have type โcustomโ with the actual emoji in the custom_emoji field. Sticker reactions have type โstickerโ with sticker attachment details in the sticker field.
Text decorations applied to character ranges in the value
Text decorations applied to character ranges in the value
Character range [start, end) in the value string where the decoration applies.
start is inclusive, end is exclusive.
Characters are measured as UTF-16 code units. Most characters count as 1; some emoji count as 2.
Animation TextDecorationAnimationOptionalAnimated text effect to apply. Mutually exclusive with style.
Animated text effect to apply. Mutually exclusive with style.
type MediaPartResponse struct{โฆ}A media attachment part
A media attachment part
Reactions []ReactionReactions on this message part
Reactions on this message part
Handle ChatHandle
Service ServiceTypeMessaging service type
Messaging service type
Type ReactionTypeType of reaction. Standard iMessage tapbacks are love, like, dislike, laugh, emphasize, question.
Custom emoji reactions have type โcustomโ with the actual emoji in the custom_emoji field.
Sticker reactions have type โstickerโ with sticker attachment details in the sticker field.
Type of reaction. Standard iMessage tapbacks are love, like, dislike, laugh, emphasize, question. Custom emoji reactions have type โcustomโ with the actual emoji in the custom_emoji field. Sticker reactions have type โstickerโ with sticker attachment details in the sticker field.
type LinkPartResponse struct{โฆ}A rich link preview part
A rich link preview part
Reactions []ReactionReactions on this message part
Reactions on this message part
Handle ChatHandle
Service ServiceTypeMessaging service type
Messaging service type
Type ReactionTypeType of reaction. Standard iMessage tapbacks are love, like, dislike, laugh, emphasize, question.
Custom emoji reactions have type โcustomโ with the actual emoji in the custom_emoji field.
Sticker reactions have type โstickerโ with sticker attachment details in the sticker field.
Type of reaction. Standard iMessage tapbacks are love, like, dislike, laugh, emphasize, question. Custom emoji reactions have type โcustomโ with the actual emoji in the custom_emoji field. Sticker reactions have type โstickerโ with sticker attachment details in the sticker field.
iMessage effect applied to a message (screen or bubble effect)
iMessage effect applied to a message (screen or bubble effect)
The sender of this message as a full handle object
The sender of this message as a full handle object
Service ServiceTypeMessaging service type
Messaging service type