-
Notifications
You must be signed in to change notification settings - Fork 11
set member status
Alexey Kravtsov edited this page May 19, 2020
·
1 revision
libtd-ktx / kotlinx.telegram.extensions / ChatKtx / setMemberStatus
open suspend fun
Chat
.setMemberStatus(userId:
Int
, status:
ChatMemberStatus
?):
Unit
Suspend function, which 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.
userId
- User identifier.
status
- The new status of the member in the chat.