ToggleChatIsPinned
public struct ToggleChatIsPinned : Codable, Equatable, TDFunction
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
-
Undocumented
Declaration
Swift
public typealias Result = Ok -
Chat identifier
Declaration
Swift
public let chatId: Int53 -
New value of is_pinned
Declaration
Swift
public let isPinned: Bool -
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
Declaration
Swift
public init(chatId: Int53, isPinned: Bool)Parameters
chatIdChat identifier
isPinnedNew value of is_pinned
View on GitHub
Install in Dash
ToggleChatIsPinned Structure Reference