---
title: MSConversation
framework: messages
role: symbol
role_heading: Class
path: messages/msconversation
---

# MSConversation

An object that represents a conversation in the Messages app.

## Declaration

```swift
class MSConversation
```

## Mentioned in

Adding Sticker packs and iMessage apps to the system Stickers app, Messages camera, and FaceTime

## Overview

Overview The 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](messages/msconversation/selectedmessage.md)

### Accessing Participants

- [localParticipantIdentifier](messages/msconversation/localparticipantidentifier.md)
- [remoteParticipantIdentifiers](messages/msconversation/remoteparticipantidentifiers.md)

### Inserting Content into the Input Field

- [insertAttachment(_:withAlternateFilename:completionHandler:)](messages/msconversation/insertattachment(_:withalternatefilename:completionhandler:).md)
- [insert(_:completionHandler:)](messages/msconversation/insert(_:completionhandler:)-3g248.md)
- [insert(_:completionHandler:)](messages/msconversation/insert(_:completionhandler:)-7fpdd.md)
- [insertText(_:completionHandler:)](messages/msconversation/inserttext(_:completionhandler:).md)

### Directly Sending a Message

- [sendAttachment(_:withAlternateFilename:completionHandler:)](messages/msconversation/sendattachment(_:withalternatefilename:completionhandler:).md)
- [send(_:completionHandler:)](messages/msconversation/send(_:completionhandler:)-9krz.md)
- [send(_:completionHandler:)](messages/msconversation/send(_:completionhandler:)-4kje0.md)
- [sendText(_:completionHandler:)](messages/msconversation/sendtext(_:completionhandler:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Message content

- [MSSticker](messages/mssticker.md)
