1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 16:23:48 +00:00
This commit is contained in:
InsanusMokrassar 2022-07-09 23:45:24 +06:00
parent c7dc69d09f
commit e7340a483a
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ val User.link: String
*/ */
@Deprecated("Renamed", ReplaceWith("userLink", "dev.inmo.tgbotapi.types.userLink")) @Deprecated("Renamed", ReplaceWith("userLink", "dev.inmo.tgbotapi.types.userLink"))
val Identifier.link: String val Identifier.link: String
get() = "$internalLinkBeginning/tg://user?id=$this" get() = "tg://user?id=$this"
/** /**
* https://core.telegram.org/bots/api#formatting-options * https://core.telegram.org/bots/api#formatting-options
*/ */

View File

@ -28,7 +28,7 @@ class ChatIdentifierTests {
@Test @Test
fun `Creating_link_from_ChatId_is_correct`() { fun `Creating_link_from_ChatId_is_correct`() {
val chatId = chatIdentifierChatId.toChatId() val chatId = chatIdentifierChatId.toChatId()
assertEquals(chatIdentifierLink, chatId.link) assertEquals(chatIdentifierLink, chatId.userLink)
} }
@Test @Test