get Pinned Channels
public final Unit getPinnedChannels(List<ChannelType> channelTypes, OperationHandler<List<BaseChannel>> handler)
BaseChannel.getPinnedChannels(* listOf(ChannelType.DIRECT, ChannelType.GROUP)
Parameters
message Ids
Message unique ID List, at most 20
BaseChannel.getPinnedChannels(
listOf(ChannelType.DIRECT, ChannelType.GROUP)
) { channels, error ->
if (error == null && channels != null) {
channels.forEach { channel ->
println("${channel.channelId} is pinned")
}
}
}Content copied to clipboard
Usage Example:
Content copied to clipboard