Class TdApi.SetChatMemberStatus

Enclosing class:
TdApi

public static class TdApi.SetChatMemberStatus
extends TdApi.Function
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.

Returns Ok

  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • userId

      public int userId
      User identifier.
    • status

      public TdApi.ChatMemberStatus status
      The new status of the member in the chat.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • SetChatMemberStatus

      public SetChatMemberStatus()
      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.

      Returns Ok

    • SetChatMemberStatus

      public SetChatMemberStatus​(long chatId, int userId, TdApi.ChatMemberStatus status)
      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.

      Returns Ok

      Parameters:
      chatId - long Chat identifier.
      userId - int User identifier.
      status - ChatMemberStatus The new status of the member in the chat.
    • SetChatMemberStatus

      public SetChatMemberStatus​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details