Module tdlight.api

Class TdApi.SetChatPermissions

Enclosing class:
TdApi

public static final class TdApi.SetChatPermissions extends TdApi.Function<TdApi.Ok>
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:
  • 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
      Changes the chat members permissions. Supported only for basic groups and supergroups. Requires canRestrictMembers administrator right. Returns Ok
      Throws:
      IOException
  • Method Details