libtd-ktx / kotlinx.telegram.coroutines / setChatPermissions
setChatPermissions
suspend fun TelegramFlow.setChatPermissions(chatId: Long, permissions: ChatPermissions?): Unit
Suspend function, which changes the chat members permissions. Supported only for basic groups and supergroups. Requires canRestrictMembers administrator right.
Parameters
chatId - Chat identifier.
permissions - New non-administrator members permissions in the chat.