---
source_url: https://www.pubnub.com/docs/chat/unity-chat-sdk/learn/chat-entities/thread-message
title: ThreadMessage object
updated_at: 2026-06-30T11:05:16.041Z
---

> Documentation Index
> For a curated overview of PubNub documentation, see: https://www.pubnub.com/docs/llms.txt
> For the full list of all documentation pages, see: https://www.pubnub.com/docs/llms-full.txt


# ThreadMessage object

`ThreadMessage` represents a single message in a thread.

## Properties

`ThreadMessage` extends `Message` and adds:

```csharp
public class ThreadMessage : Message {
    public string ParentChannelId  { get; }
}
```

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| parentChannelId | string | Optional |  | Unique identifier of the main channel on which you create a subchannel (thread channel) and thread messages. |

### Events

The `ThreadMessage` object has the following event:

```csharp
// Event triggered when a thread message is updated
public event Action<ThreadMessage> OnThreadMessageUpdated;
```

## Methods

You can call the following methods on the `ThreadMessage` object.

Click on each method for more details.

### Standard methods

* [PinMessageToParentChannel()](https://www.pubnub.com/docs/chat/unity-chat-sdk/build/features/messages/threads#pin-thread-message-to-parent-channel)
* [UnPinMessageFromParentChannel()](https://www.pubnub.com/docs/chat/unity-chat-sdk/build/features/messages/threads#unpin-thread-message-from-parent-channel)
* All standard methods available under the [Message object](https://www.pubnub.com/docs/chat/unity-chat-sdk/learn/chat-entities/message#standard-methods).

### Streaming methods

`ThreadMessage` inherits all streaming methods from [Message](https://www.pubnub.com/docs/chat/unity-chat-sdk/learn/chat-entities/message#streaming-methods).

## Use case

`ThreadMessage` methods enable:

* Sending messages in [threads](https://www.pubnub.com/docs/chat/unity-chat-sdk/build/features/messages/threads)
* [Pinning](https://www.pubnub.com/docs/chat/unity-chat-sdk/build/features/messages/threads#pin-thread-message-to-parent-channel) thread messages to the parent channel