From 631f1b942725fc711a621360befa2ec27f6f56cb Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 30 Apr 2023 21:00:27 +0600 Subject: [PATCH] start 7.1.1, update dependencies and add fixes in makeLinkToMessage --- CHANGELOG.md | 8 ++++++++ gradle.properties | 2 +- gradle/libs.versions.toml | 4 ++-- .../extensions/utils/formatting/LinksFormatting.kt | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af68a25e48..1da1dac2c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # TelegramBotAPI changelog +## 7.1.1 + +* `Versions`: + * `Kotlin`: `1.8.20` -> `1.8.21` + * `MicroUtils`: `0.17.8` -> `0.18.0` +* `Utils`: + * Fixes in `makeLinkToMessage` + ## 7.1.0 **This update contains changes according to the [Telegram Bot API 6.7](https://core.telegram.org/bots/api-changelog#april-21-2023)** diff --git a/gradle.properties b/gradle.properties index 15b550f78c..a40b773158 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,4 +6,4 @@ kotlin.incremental=true kotlin.incremental.js=true library_group=dev.inmo -library_version=7.1.0 +library_version=7.1.1 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 4c35bd721f..2976e15720 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] -kotlin = "1.8.20" +kotlin = "1.8.21" kotlin-serialization = "1.5.0" kotlin-coroutines = "1.6.4" @@ -13,7 +13,7 @@ ktor = "2.3.0" ksp = "1.8.21-1.0.11" kotlin-poet = "1.13.0" -microutils = "0.17.8" +microutils = "0.18.0" github-release-plugin = "2.4.1" dokka = "1.8.10" diff --git a/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/formatting/LinksFormatting.kt b/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/formatting/LinksFormatting.kt index 6a8e9d4c30..a5df98590e 100644 --- a/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/formatting/LinksFormatting.kt +++ b/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/formatting/LinksFormatting.kt @@ -47,7 +47,7 @@ fun makeLinkToMessage( username: Username, messageId: MessageId, threadId: MessageThreadId? = null -): String = makeLinkToMessage(username.username, messageId, threadId) +): String = makeLinkToMessage(username.usernameWithoutAt, messageId, threadId) fun makeLinkToMessage( chatId: Identifier, messageId: MessageId,