TransferChatOwnership
public struct TransferChatOwnership : Codable, Equatable, TDFunction
Changes the owner of a chat. The current user must be a current owner of the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats
-
Undocumented
Declaration
Swift
public typealias Result = Ok
-
Chat identifier
Declaration
Swift
public let chatId: Int53
-
Identifier of the user to which transfer the ownership. The ownership can’t be transferred to a bot or to a deleted user
Declaration
Swift
public let userId: Int32
-
The password of the current user
Declaration
Swift
public let password: String
-
Changes the owner of a chat. The current user must be a current owner of the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats
Declaration
Swift
public init(chatId: Int53, userId: Int32, password: String)
Parameters
chatId
Chat identifier
userId
Identifier of the user to which transfer the ownership. The ownership can’t be transferred to a bot or to a deleted user
password
The password of the current user