Package org.drinkless.tdlib
Class TdApi.SetChatPermissions
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.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 Summary
Fields Modifier and Type Field Description longchatIdChat identifier.static intCONSTRUCTORIdentifier uniquely determining type of the object.TdApi.ChatPermissionspermissionsNew non-administrator members permissions in the chat.
-
Constructor Summary
Constructors Constructor Description SetChatPermissions()Default constructor for a function, which changes the chat members permissions.SetChatPermissions(long chatId, TdApi.ChatPermissions permissions)Creates a function, which changes the chat members permissions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
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
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SetChatPermissions
public SetChatPermissions()
Default constructor for a function, which 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)Creates a function, which changes the chat members permissions. Supported only for basic groups and supergroups. Requires canRestrictMembers administrator right.Returns
Ok- Parameters:
chatId- Chat identifier.permissions- New non-administrator members permissions in the chat.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-