1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-22 08:37:12 +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