mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-22 16:47:13 +00:00
fixes
This commit is contained in:
parent
c7dc69d09f
commit
e7340a483a
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user