Creates a paginated query for listing channels.
Query parameters
A ChannelsQuery instance
Gets channels that have unread messages.
Filter by channel types
A promise resolving to the list of channels with unread messages
Gets pinned (top) channels filtered by channel types.
Filter by channel types
A promise resolving to the list of pinned channels
Deletes channels by their identifiers.
The channel identifiers to delete
A promise resolving to the operation result
Sets the do-not-disturb level for all channels of a specific type.
The channel type and level parameters
A promise resolving to the operation result
Gets the do-not-disturb level applied to all channels of a specific type.
Creates a query for channels with unread messages that mention the current user.
Query parameters
An UnreadMentionMeChannelsQuery instance
Gets the total unread message count across all channels.
A promise resolving to the total unread count
Gets the total unread message count filtered by do-not-disturb levels and channel types.
Filter parameters
A promise resolving to the filtered unread count
Creates a paginated query for users who have read a specific message.
Query parameters
A MessagesReadReceiptUsersQuery instance
Reloads this channel from the server and returns a fresh BaseChannel instance.
Pins this channel to the top of the channel list.
A promise resolving to the operation result
Unpins this channel from the top of the channel list.
A promise resolving to the operation result
Deletes this channel.
A promise resolving to the operation result
Removes tags from this channel.
The tag IDs to remove
A promise resolving to the operation result
Sets the do-not-disturb level for this channel.
The notification level to apply
A promise resolving to the operation result
Clears the unread message count for this channel.
A promise resolving to the operation result
Saves a draft text for this channel.
The draft text to save
A promise resolving to the operation result
Clears the saved draft text for this channel.
A promise resolving to the operation result
Gets messages by their server-side message IDs.
The query parameters
A promise resolving to a map of message ID to message (or undefined if not found)
Clears messages in this channel before a specific timestamp.
The clear parameters
A promise resolving to the operation result
Sends a message in this channel.
The type of the message content
The send message parameters
A promise resolving to the sent message
Sends a media message (image, file, voice, etc.) that requires file upload.
The type of the message content
The send media message parameters (must include a file)
A promise resolving to the sent message
Sends read receipt responses for the specified messages.
The message IDs to acknowledge as read
A promise resolving to the operation result
Gets read receipt information for messages in this channel.
The message IDs to query
A promise resolving to the read receipt info list
Gets read receipt status for specific users on a message.
The query parameters
A promise resolving to the read receipt user list
Gets read receipt information for messages across different channels.
Array of message identifiers (channel + message ID)
A promise resolving to the read receipt info list
Modifies (edits) a sent message's content.
The type of the message content
The modification parameters (message and new content)
A promise resolving to the operation result
Refreshes the quoted content of reference messages to get the latest version.
The reference messages to refresh
A promise resolving to the refresh results
Creates a paginated query for message history.
Query parameters
A MessagesQuery instance
Creates a new group.
Group creation parameters
A promise resolving to any failure info (e.g. users that failed to be invited)
Updates this group's information (name, portrait, etc.).
The fields to update
A promise resolving to error keys if any fields failed
Kicks members from this group.
Kick parameters including user IDs and cleanup config
A promise resolving to the operation result
Leaves this group.
Optional cleanup configuration
A promise resolving to the operation result
Dismisses (dissolves) this group. Only the group owner can perform this operation.
A promise resolving to the operation result
Joins this group.
A promise resolving to the process code
Transfers group ownership to another user.
Transfer parameters
A promise resolving to the operation result
Adds group managers (admin role).
The user IDs to promote to manager
A promise resolving to the operation result
Removes group managers (demotes from admin role).
The user IDs to demote
A promise resolving to the operation result
Creates a paginated query for group members filtered by role.
Query parameters including group ID and role filter
A GroupMembersByRoleQuery instance
Gets group member information for the specified user IDs.
The user IDs to query
A promise resolving to the member info list
Sets a member's info (nickname, extra) in this group.
The member info parameters
A promise resolving to error keys if any fields failed
Invites users to this group.
User IDs to invite
A promise resolving to the process code
Accepts a group invitation.
The user ID who sent the invitation
A promise resolving to the operation result
Refuses a group invitation.
The refusal parameters
A promise resolving to the operation result
Accepts a group join application.
The acceptance parameters
A promise resolving to the process code
Refuses a group join application.
The refusal parameters
A promise resolving to the operation result
Creates a paginated query for group applications.
Query parameters
A GroupApplicationsQuery instance
Creates a paginated query for joined groups filtered by the user's role.
Query parameters
A JoinedGroupsByRoleQuery instance
Adds users to the group favorites list.
User IDs to add as favorites
A promise resolving to the operation result
Removes users from the group favorites list.
User IDs to remove from favorites
A promise resolving to the operation result
Gets the group favorites list.
A promise resolving to the favorites info list
The channel identifier
The channel ID
The channel type
The do-not-disturb level for this channel
Whether this channel is pinned (stuck to top)
The unread message count for this channel
The last operation timestamp (ms) on this channel
The saved draft text for this channel
The latest message in this channel, or null if none
The translate strategy applied to this channel
Whether this channel includes robot/bot users
The unique group channel ID
Represents a group channel. Provides group-specific operations such as creating groups, managing members, roles, invites, and applications.