Class TdApi.SetChatPermissions

Enclosing class:
TdApi

public static class TdApi.SetChatPermissions
extends TdApi.Function
Changes the chat members permissions. Supported only for basic groups and supergroups. Requires canRestrictMembers administrator right.

Returns Ok

  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • permissions

      public TdApi.ChatPermissions permissions
      New non-administrator members permissions in the chat.
    • CONSTRUCTOR

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

    • SetChatPermissions

      public SetChatPermissions()
      Changes the chat members permissions. Supported only for basic groups and supergroups. Requires canRestrictMembers administrator right.

      Returns Ok

    • SetChatPermissions

      public SetChatPermissions​(long chatId, TdApi.ChatPermissions permissions)
      Changes the chat members permissions. Supported only for basic groups and supergroups. Requires canRestrictMembers administrator right.

      Returns Ok

      Parameters:
      chatId - long Chat identifier.
      permissions - ChatPermissions New non-administrator members permissions in the chat.
    • SetChatPermissions

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