- Enclosing class:
- TdApi
Changes the chat members permissions.
Supported only for basic groups and
supergroups. Requires canRestrictMembers administrator right.
Returns
Ok-
Field Summary
FieldsModifier and TypeFieldDescriptionlongChat identifier.static final intNew non-administrator members permissions in the chat. -
Constructor Summary
ConstructorsConstructorDescriptionChanges 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
toStringMethods 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. ReturnsOk -
SetChatPermissions
Changes the chat members permissions. Supported only for basic groups and supergroups. Requires canRestrictMembers administrator right. ReturnsOk- 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. ReturnsOk- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructorin classTdApi.Object
-
serialize
- Specified by:
serializein classTdApi.Object- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-