Method Signature
Parameters
Configuration object for sending the attachment
Returns
The sent message object containing the attachment metadata
Examples
Send an Image
Send with Custom Filename
Send as a Reply
Send Video
Behavior
- If the specified chat doesn’t exist, it will be created automatically before sending
- The method is queued to ensure messages are sent in order
- File is read from disk and uploaded as multipart form data
- All file types supported by iMessage can be sent
Error Handling
See Also
- Audio Messages - Sending audio messages
- Send Sticker - Sending stickers
- Download Attachment - Downloading attachments