- Enclosing class:
- TdApi
Changes the chat members permissions.
Supported only for basic groups and
supergroups. Requires canRestrictMembers administrator right.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionlong
Chat identifier.static final int
New non-administrator members permissions in the chat. -
Constructor Summary
ConstructorDescriptionChanges the chat members permissions.SetChatPermissions
(long chatId, TdApi.ChatPermissions permissions) Changes the chat members permissions.SetChatPermissions
(DataInput input) Changes the chat members permissions. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdChat identifier. -
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
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
Changes the chat members permissions. Supported only for basic groups and supergroups. Requires canRestrictMembers administrator right.Returns
Ok
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-