Package it.tdlight.jni
Class TdApi.SetChatMemberStatus
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.SetChatMemberStatus
- Enclosing class:
- TdApi
public static class TdApi.SetChatMemberStatus extends TdApi.Function
Changes the status of a chat member,
needs appropriate privileges. This
function is currently not suitable
for adding new members to the chat
and transferring chat ownership;
instead, use addChatMember or
transferChatOwnership. The chat member
status will not be changed until it
has been synchronized with the server.
Returns Ok
-
Field Summary
Fields Modifier and Type Field Description long
chatId
Chat identifier.static int
CONSTRUCTOR
TdApi.ChatMemberStatus
status
The new status of the member in the chat.int
userId
User identifier. -
Constructor Summary
Constructors Constructor Description SetChatMemberStatus()
Changes the status of a chat member, needs appropriate privileges.SetChatMemberStatus(long chatId, int userId, TdApi.ChatMemberStatus status)
Changes the status of a chat member, needs appropriate privileges.SetChatMemberStatus(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
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. -
userId
public int userIdUser identifier. -
status
The new status of the member in the chat. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
SetChatMemberStatus
public SetChatMemberStatus()Changes the status of a chat member, needs appropriate privileges. This function is currently not suitable for adding new members to the chat and transferring chat ownership; instead, use addChatMember or transferChatOwnership. The chat member status will not be changed until it has been synchronized with the server.Returns
Ok
-
SetChatMemberStatus
Changes the status of a chat member, needs appropriate privileges. This function is currently not suitable for adding new members to the chat and transferring chat ownership; instead, use addChatMember or transferChatOwnership. The chat member status will not be changed until it has been synchronized with the server.Returns
Ok
- Parameters:
chatId
- long Chat identifier.userId
- int User identifier.status
- ChatMemberStatus The new status of the member in the chat.
-
SetChatMemberStatus
- 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()
-