From a62a14a59901b05dc7a7611a9c2e45aed0e0cb63 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 30 Aug 2024 18:40:39 +0600 Subject: [PATCH] migration onto 18.0.0 --- RightsChangerBot/src/main/kotlin/RightsChanger.kt | 2 +- gradle.properties | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/RightsChangerBot/src/main/kotlin/RightsChanger.kt b/RightsChangerBot/src/main/kotlin/RightsChanger.kt index 9c3cb17..a6c1ba3 100644 --- a/RightsChangerBot/src/main/kotlin/RightsChanger.kt +++ b/RightsChangerBot/src/main/kotlin/RightsChanger.kt @@ -106,7 +106,7 @@ suspend fun main(args: Array) { suspend fun BehaviourContext.getUserChatPermissions(chatId: ChatId, userId: UserId): ChatPermissions? { val chatMember = getChatMember(chatId, userId) - return chatMember.restrictedChatMemberOrNull() ?: chatMember.whenMemberChatMember { + return chatMember.restrictedMemberChatMemberOrNull() ?: chatMember.whenMemberChatMember { getChat(chatId).extendedGroupChatOrNull() ?.permissions } } diff --git a/gradle.properties b/gradle.properties index 3f64379..3ab8ef8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,8 +5,8 @@ org.gradle.jvmargs=-Xmx3148m kotlin.daemon.jvmargs=-Xmx3g -Xms500m -kotlin_version=2.0.10 -telegram_bot_api_version=17.0.0 -micro_utils_version=0.22.0 -serialization_version=1.7.1 -ktor_version=2.3.11 +kotlin_version=2.0.20 +telegram_bot_api_version=18.0.0 +micro_utils_version=0.22.1 +serialization_version=1.7.2 +ktor_version=2.3.12