diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/ChatIdentifier.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/ChatIdentifier.kt index 967e81d54a..69044c875b 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/ChatIdentifier.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/ChatIdentifier.kt @@ -44,7 +44,7 @@ val User.link: String */ @Deprecated("Renamed", ReplaceWith("userLink", "dev.inmo.tgbotapi.types.userLink")) val Identifier.link: String - get() = "$internalLinkBeginning/tg://user?id=$this" + get() = "tg://user?id=$this" /** * https://core.telegram.org/bots/api#formatting-options */ diff --git a/tgbotapi.core/src/commonTest/kotlin/dev/inmo/tgbotapi/types/ChatIdentifierTests.kt b/tgbotapi.core/src/commonTest/kotlin/dev/inmo/tgbotapi/types/ChatIdentifierTests.kt index a90efac2c1..004de4dc0f 100644 --- a/tgbotapi.core/src/commonTest/kotlin/dev/inmo/tgbotapi/types/ChatIdentifierTests.kt +++ b/tgbotapi.core/src/commonTest/kotlin/dev/inmo/tgbotapi/types/ChatIdentifierTests.kt @@ -28,7 +28,7 @@ class ChatIdentifierTests { @Test fun `Creating_link_from_ChatId_is_correct`() { val chatId = chatIdentifierChatId.toChatId() - assertEquals(chatIdentifierLink, chatId.link) + assertEquals(chatIdentifierLink, chatId.userLink) } @Test