public static class TdApi.SetChatMemberStatus extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Chat identifier.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.MessageSender |
memberId
Member identifier.
|
TdApi.ChatMemberStatus |
status
The new status of the member in the chat.
|
| Constructor and Description |
|---|
SetChatMemberStatus()
Default constructor for a function, which changes the status of a chat member; requires canInviteUsers member right to add a chat member, canPromoteMembers administrator right to change administrator rights of the member, and canRestrictMembers administrator right to change restrictions of a user.
|
SetChatMemberStatus(long chatId,
TdApi.MessageSender memberId,
TdApi.ChatMemberStatus status)
Creates a function, which changes the status of a chat member; requires canInviteUsers member right to add a chat member, canPromoteMembers administrator right to change administrator rights of the member, and canRestrictMembers administrator right to change restrictions of a user.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public TdApi.MessageSender memberId
public TdApi.ChatMemberStatus status
public static final int CONSTRUCTOR
public SetChatMemberStatus()
Returns Ok
public SetChatMemberStatus(long chatId,
TdApi.MessageSender memberId,
TdApi.ChatMemberStatus status)
Returns Ok
chatId - Chat identifier.memberId - Member identifier. Chats can be only banned and unbanned in supergroups and channels.status - The new status of the member in the chat.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object