From 753d686fab0f4d321e9a4ccb9cd8c43ef8876831 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 8 Jan 2024 13:21:41 +0600 Subject: [PATCH] build fixes --- PollsBot/src/main/kotlin/PollsBot.kt | 5 +++-- build.gradle | 2 +- gradle.properties | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/PollsBot/src/main/kotlin/PollsBot.kt b/PollsBot/src/main/kotlin/PollsBot.kt index f489fc4..1587ecc 100644 --- a/PollsBot/src/main/kotlin/PollsBot.kt +++ b/PollsBot/src/main/kotlin/PollsBot.kt @@ -14,6 +14,7 @@ import dev.inmo.tgbotapi.extensions.utils.ifFromChannelGroupContentMessage import dev.inmo.tgbotapi.types.ChatId import dev.inmo.tgbotapi.types.IdChatIdentifier import dev.inmo.tgbotapi.types.PollIdentifier +import dev.inmo.tgbotapi.types.ReplyParameters import dev.inmo.tgbotapi.types.chat.* import dev.inmo.tgbotapi.types.chat.GroupChat import dev.inmo.tgbotapi.types.chat.PrivateChat @@ -54,7 +55,7 @@ suspend fun main(vararg args: String) { it.toString() }, isAnonymous = true, - replyToMessageId = it.messageId + replyParameters = ReplyParameters(it) ) pollToChatMutex.withLock { pollToChat[sentPoll.content.poll.id] = sentPoll.chat.id @@ -69,7 +70,7 @@ suspend fun main(vararg args: String) { it.toString() }, isAnonymous = false, - replyToMessageId = it.messageId + replyParameters = ReplyParameters(it) ) pollToChatMutex.withLock { pollToChat[sentPoll.content.poll.id] = sentPoll.chat.id diff --git a/build.gradle b/build.gradle index f0319eb..40b825e 100644 --- a/build.gradle +++ b/build.gradle @@ -26,6 +26,6 @@ allprojects { } } - maven { url "https://git.inmo.dev/api/packages/InsanusMokrassar/maven" } + maven { url "https://nexus.inmo.dev/repository/maven-releases/" } } } diff --git a/gradle.properties b/gradle.properties index 157b67b..60a63d6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ kotlin.code.style=official org.gradle.parallel=true # Due to parallel compilation project require next amount of memory on full build -org.gradle.jvmargs=-Xmx2g +org.gradle.jvmargs=-Xmx2344m kotlin_version=1.9.22