1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-15 13:19:30 +00:00

add kicked changes listening

This commit is contained in:
2024-08-30 19:30:05 +06:00
parent 048599414a
commit 9f2ccde589
5 changed files with 42 additions and 1 deletions

View File

@@ -73,3 +73,8 @@ val ChatMemberUpdated.gotRestrictionsChanged: Boolean get() = newChatMemberState
* All member restrictions were removed
*/
val ChatMemberUpdated.gotUnrestricted: Boolean get() = oldChatMemberState.isRestricted && !newChatMemberState.isRestricted
/**
* [ChatMemberUpdated.newChatMemberState] of [this] [isKicked]
*/
val ChatMemberUpdated.kicked: Boolean get() = newChatMemberState.isKicked