Skip to main content

Pinning group channels

The channel pinning feature for group channels works the same as for direct channels. See Pinning Channels for the full API reference. All examples and APIs apply to GroupChannel in the same way they apply to DirectChannel.

For example, to pin a group channel:

kotlin
val channel = GroupChannel("groupId")

channel.pin { success, error ->
if (error == null && success == true) {
// Pinned successfully
} else {
// Pin failed: ${error?.message}
}
}

For additional operations (unpin, check status, listen for changes, pin within a tag), refer to Pinning Channels.