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

    chatId

    Chat identifier

    isPinned

    New value of is_pinned