AddChatMember
public struct AddChatMember : Codable, Equatable, TDFunction
Adds a new member to a chat. Members can’t be added to private or secret chats. Members will not be added until the chat state has been synchronized with the server
-
Undocumented
Declaration
Swift
public typealias Result = Ok
-
Chat identifier
Declaration
Swift
public let chatId: Int53
-
Identifier of the user
Declaration
Swift
public let userId: Int32
-
The number of earlier messages from the chat to be forwarded to the new member; up to 100. Ignored for supergroups and channels
Declaration
Swift
public let forwardLimit: Int32
-
Adds a new member to a chat. Members can’t be added to private or secret chats. Members will not be added until the chat state has been synchronized with the server
Declaration
Swift
public init(chatId: Int53, userId: Int32, forwardLimit: Int32)
Parameters
chatId
Chat identifier
userId
Identifier of the user
forwardLimit
The number of earlier messages from the chat to be forwarded to the new member; up to 100. Ignored for supergroups and channels