Class TdApi.SetChatMemberStatus
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.SetChatMemberStatus
- Enclosing class:
- TdApi
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. 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
Modifier and TypeFieldDescriptionlong
Chat identifier.static final int
Identifier uniquely determining type of the object.Member identifier.The new status of the member in the chat. -
Constructor Summary
ConstructorDescriptionDefault 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. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdChat 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SetChatMemberStatus
public 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. 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; 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. 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 Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-