<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Messages",
  "identifier" : "/documentation/Messages/MSConversation",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Messages"
    ],
    "preciseIdentifier" : "c:objc(cs)MSConversation"
  },
  "title" : "MSConversation"
}
-->

# MSConversation

An object that represents a conversation in the Messages app.

```
class MSConversation
```

## Overview

The [`MSConversation`](/documentation/Messages/MSConversation) class represents a conversation in the Messages app. Use conversation objects to access information about the currently selected message or the conversation participants, or to send text, stickers, attachments, or message objects.

## Topics

### Accessing the Selected Message

[`selectedMessage`](/documentation/Messages/MSConversation/selectedMessage)

The message that the user selected in the conversation transcript.

### Accessing Participants

[`localParticipantIdentifier`](/documentation/Messages/MSConversation/localParticipantIdentifier)

A UUID that identifies the user on this device.

[`remoteParticipantIdentifiers`](/documentation/Messages/MSConversation/remoteParticipantIdentifiers)

An array of UUIDs representing the remote participants in this conversation.

### Inserting Content into the Input Field

[`insertAttachment(_:withAlternateFilename:completionHandler:)`](/documentation/Messages/MSConversation/insertAttachment(_:withAlternateFilename:completionHandler:))

Inserts an attachment into the current context.

[`insert(_:completionHandler:)`](/documentation/Messages/MSConversation/insert(_:completionHandler:)-3g248)

Inserts a message object into the Messages app’s input field.

[`insert(_:completionHandler:)`](/documentation/Messages/MSConversation/insert(_:completionHandler:)-7fpdd)

Inserts a sticker into the current context.

[`insertText(_:completionHandler:)`](/documentation/Messages/MSConversation/insertText(_:completionHandler:))

Inserts text into the Messages app’s input field.

### Directly Sending a Message

[`sendAttachment(_:withAlternateFilename:completionHandler:)`](/documentation/Messages/MSConversation/sendAttachment(_:withAlternateFilename:completionHandler:))

Sends the media file specified by the given URL.

[`send(_:completionHandler:)`](/documentation/Messages/MSConversation/send(_:completionHandler:)-9krz)

Sends a message object.

[`send(_:completionHandler:)`](/documentation/Messages/MSConversation/send(_:completionHandler:)-4kje0)

Sends a sticker.

[`sendText(_:completionHandler:)`](/documentation/Messages/MSConversation/sendText(_:completionHandler:))

Sends a text message.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)