mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-10-29 16:03:16 +00:00
fix of build
This commit is contained in:
1 parent
92407c9010
commit
48c4a3156b
4 files changed
+9
-11
No files matched your search
+1
-1
@@ -77,7 +77,7 @@ val Chat.link: String?
|
||||
inviteLink ?.let { return it }
|
||||
}
|
||||
if (this is PrivateChat) {
|
||||
return id.link
|
||||
return id.userLink
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
+3
-3
@@ -109,9 +109,9 @@ private inline fun String.hashTag(adapt: String.() -> String): String = if (star
|
||||
}
|
||||
|
||||
|
||||
fun String.textMentionMarkdown(userId: UserId): String = linkMarkdown(userId.link)
|
||||
fun String.textMentionMarkdownV2(userId: UserId): String = linkMarkdownV2(userId.link)
|
||||
fun String.textMentionHTML(userId: UserId): String = linkHTML(userId.link)
|
||||
fun String.textMentionMarkdown(userId: UserId): String = linkMarkdown(userId.userLink)
|
||||
fun String.textMentionMarkdownV2(userId: UserId): String = linkMarkdownV2(userId.userLink)
|
||||
fun String.textMentionHTML(userId: UserId): String = linkHTML(userId.userLink)
|
||||
|
||||
|
||||
fun String.mentionMarkdown(): String = mention(String::toMarkdown)
|
||||
|
||||
Reference in new issue
Block a user