Base Channel
Base class for all channel types.
Contains common channel properties and methods for message querying, unread count management, and channel operations.
Inheritance hierarchy:
BaseChannel
├── DirectChannel (1:1 private chat)
├── GroupChannel (group chat)
├── SystemChannel (system notifications)
├── OpenChannel (open channel)
└── CommunityChannel (community)Inheritors
Properties
Channel type
Data management info from the server-side data management service.
Draft info for an edited message.
Whether this channel contains a robot/bot user.
The latest message in this channel.
Unread count of mentioned messages (including @all).
Unread count of messages that specifically mention the current user.
Channel message push notification level.
Channel operation timestamp in milliseconds.
Channel translation strategy.
Unread message count.
Functions
Cancels a media message that is currently being sent.
Clears the text message draft for this channel.
Clears the unread message count for this channel.
Deletes this channel locally.
Deletes local messages by their client IDs.
Deletes a message for all users (recall).
Deletes messages for the current user (both remote and local).
Deletes messages before the specified timestamp (for the current user).
Removes tags from this channel.
Channel unique identifier
Channel type
Data management info from the server-side data management service.
Draft info for an edited message.
Gets the first unread message in this channel.
Whether this channel contains a robot/bot user.
The latest message in this channel.
Unread count of mentioned messages (including @all).
Unread count of messages that specifically mention the current user.
Gets read receipt info for the specified messages.
Gets messages around a given sent timestamp.
Gets read receipt details grouped by users.
Channel message push notification level.
Channel operation timestamp in milliseconds.
Gets all tags associated with this channel.
Channel translation strategy.
Unread message count.
Gets unread mentioned messages in this channel.
Batch inserts messages into the local database.
Pins this channel to the top of the channel list.
Reloads channel data from the local database.
Saves a text message draft for this channel.
Sends a media message in this channel (e.g., image, video, file).
Sends a non-media message in this channel (e.g., text, location).
Sends a read receipt response for the specified messages.
Draft info for an edited message.
Sets the notification (do-not-disturb) level for this channel.
Syncs the conversation read status to the server.
Unpins this channel from the top of the channel list.
Modifies a sent message.