SetChatMemberStatus

public struct SetChatMemberStatus : Codable, Equatable, TDFunction

Changes the status of a chat member, needs appropriate privileges. This function is currently not suitable for adding new members to the chat and transferring chat ownership; instead, use addChatMember or transferChatOwnership. The chat member status will not be changed until it has been synchronized with the server

  • Undocumented

    Declaration

    Swift

    public typealias Result = Ok
  • Chat identifier

    Declaration

    Swift

    public let chatId: Int53
  • User identifier

    Declaration

    Swift

    public let userId: Int32
  • The new status of the member in the chat

    Declaration

    Swift

    public let status: ChatMemberStatus
  • Changes the status of a chat member, needs appropriate privileges. This function is currently not suitable for adding new members to the chat and transferring chat ownership; instead, use addChatMember or transferChatOwnership. The chat member status will not be changed until it has been synchronized with the server

    Declaration

    Swift

    public init(chatId: Int53, userId: Int32, status: ChatMemberStatus)

    Parameters

    chatId

    Chat identifier

    userId

    User identifier

    status

    The new status of the member in the chat