Package org.drinkless.tdlib
Class TdApi.SetChatMemberStatus
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.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 transferring chat ownership; use transferChatOwnership instead. Use addChatMember or banChatMember if some additional parameters needs to be passed.Returns
Ok
-
-
Field Summary
Fields Modifier and Type Field Description longchatIdChat identifier.static intCONSTRUCTORIdentifier uniquely determining type of the object.TdApi.MessageSendermemberIdMember identifier.TdApi.ChatMemberStatusstatusThe new status of the member in the chat.
-
Constructor Summary
Constructors Constructor Description SetChatMemberStatus()Default constructor for a function, which changes the status of a chat member, needs appropriate privileges.SetChatMemberStatus(long chatId, TdApi.MessageSender memberId, TdApi.ChatMemberStatus status)Creates a function, which changes the status of a chat member, needs appropriate privileges.
-
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.
-
memberId
public TdApi.MessageSender memberId
Member identifier. Chats can be only banned and unbanned in supergroups and channels.
-
status
public TdApi.ChatMemberStatus status
The new status of the member in the chat.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SetChatMemberStatus
public SetChatMemberStatus()
Default constructor for a function, which changes the status of a chat member, needs appropriate privileges. This function is currently not suitable for transferring chat ownership; use transferChatOwnership instead. Use addChatMember or banChatMember if some additional parameters needs to be passed.Returns
Ok
-
SetChatMemberStatus
public SetChatMemberStatus(long chatId, TdApi.MessageSender memberId, TdApi.ChatMemberStatus status)Creates a function, which changes the status of a chat member, needs appropriate privileges. This function is currently not suitable for transferring chat ownership; use transferChatOwnership instead. Use addChatMember or banChatMember if some additional parameters needs to be passed.Returns
Ok- Parameters:
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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-