mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-26 03:58:44 +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"))
|
@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
|
||||||
*/
|
*/
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user