1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-21 15:53:47 +00:00

update ChatMemberUpdated#gotRestrictionsChanged

This commit is contained in:
InsanusMokrassar 2024-08-30 22:58:23 +06:00
parent 89360235a6
commit b03eef8bcb

View File

@ -67,7 +67,7 @@ val ChatMemberUpdated.gotRestricted: Boolean get() = !oldChatMemberState.isRestr
/**
* Member restrictions were changed (but not removed)
*/
val ChatMemberUpdated.gotRestrictionsChanged: Boolean get() = newChatMemberState.isRestricted
val ChatMemberUpdated.gotRestrictionsChanged: Boolean get() = oldChatMemberState.isRestricted && newChatMemberState.isRestricted
/**
* All member restrictions were removed