ThreadChannel object
ThreadChannel is an object that refers to a single thread (channel) in a chat.
Properties
The ThreadChannel object extends the Channel object, so it takes its properties. It also has:
1public class ThreadChannel : Channel {
2 public string ParentChannelId { get; }
3 public string ParentMessageTimeToken { get; }
4}
| Parameter | Description |
|---|---|
parentChannelIdType: string | Unique identifier of the main channel on which you create a subchannel (thread channel) and thread messages. |
ParentMessageTimeTokenType: string | The time token of the message that started the thread. |
Methods
You can call the following methods on the ThreadChannel object.
Click on each method for more details.
GetThreadHistory()PinMessageToParentChannel()UnPinMessageFromParentChannel()- All methods available under the
Channelobject.
Use case
For example, you can use the ThreadChannel object methods to: