libtd-ktx / kotlinx.telegram.extensions / ChatKtx / toggleIsPinned
toggleIsPinned
open suspend fun
Chat
.toggleIsPinned(isPinned:
Boolean
):
Unit
Suspend function, which changes the pinned state of a chat. You can pin up to GetOption("pinned_chat_count_max")/GetOption("pinned_archived_chat_count_max") non-secret chats and the same number of secret chats in the main/archive chat list.
Parameters
isPinned
- New value of isPinned.