libtd-ktx / kotlinx.telegram.coroutines / toggleChatIsPinned
toggleChatIsPinned
suspend fun
TelegramFlow
.toggleChatIsPinned(chatId:
Long
, 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
chatId
- Chat identifier.
isPinned
- New value of isPinned.