Skip to content

set member status

Alexey Kravtsov edited this page May 19, 2020 · 1 revision

libtd-ktx / kotlinx.telegram.extensions / ChatKtx / setMemberStatus

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.

Parameters

userId - User identifier.

status - The new status of the member in the chat.

Clone this wiki locally