libtd-ktx / kotlinx.telegram.coroutines / setChatMemberStatus
setChatMemberStatus
suspend fun
TelegramFlow
.setChatMemberStatus(chatId:
Long
, 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
chatId
- Chat identifier.
userId
- User identifier.
status
- The new status of the member in the chat.