2020-10-04 11:06:30 +00:00
|
|
|
package dev.inmo.tgbotapi.types.MessageEntity.textsources
|
2019-12-11 08:06:09 +00:00
|
|
|
|
2022-05-01 14:36:07 +00:00
|
|
|
import dev.inmo.tgbotapi.types.Identifier
|
|
|
|
import dev.inmo.tgbotapi.types.UserId
|
2022-04-21 18:16:41 +00:00
|
|
|
import dev.inmo.tgbotapi.types.chat.User
|
2022-05-01 14:36:07 +00:00
|
|
|
import dev.inmo.tgbotapi.types.message.textsources.mention
|
2019-12-11 08:06:09 +00:00
|
|
|
|
2020-11-06 12:52:59 +00:00
|
|
|
/**
|
|
|
|
* @see mention
|
|
|
|
*/
|
2022-05-01 14:36:07 +00:00
|
|
|
@Deprecated("Replaced", ReplaceWith("TextMentionTextSource", "dev.inmo.tgbotapi.types.message.textsources.TextMentionTextSource"))
|
|
|
|
typealias TextMentionTextSource = dev.inmo.tgbotapi.types.message.textsources.TextMentionTextSource
|
2020-11-06 12:52:59 +00:00
|
|
|
|
|
|
|
@Suppress("NOTHING_TO_INLINE")
|
2022-05-01 14:36:07 +00:00
|
|
|
@Deprecated("Replaced", ReplaceWith("mention", "dev.inmo.tgbotapi.types.message.textsources.mention"))
|
|
|
|
inline fun mention(parts: TextSourcesList, user: User) = mention(parts, user)
|
2020-11-06 12:52:59 +00:00
|
|
|
@Suppress("NOTHING_TO_INLINE")
|
2022-05-01 14:36:07 +00:00
|
|
|
@Deprecated("Replaced", ReplaceWith("User.mention", "dev.inmo.tgbotapi.types.message.textsources.User.mention"))
|
|
|
|
inline fun User.mention(parts: TextSourcesList) = mention(parts)
|
2021-02-08 12:15:54 +00:00
|
|
|
@Suppress("NOTHING_TO_INLINE")
|
2022-05-01 14:36:07 +00:00
|
|
|
@Deprecated("Replaced", ReplaceWith("mention", "dev.inmo.tgbotapi.types.message.textsources.mention"))
|
|
|
|
inline fun mention(parts: TextSourcesList, userId: UserId) = mention(parts, userId)
|
2021-02-08 12:15:54 +00:00
|
|
|
@Suppress("NOTHING_TO_INLINE")
|
2022-05-01 14:36:07 +00:00
|
|
|
@Deprecated("Replaced", ReplaceWith("UserId.mention", "dev.inmo.tgbotapi.types.message.textsources.UserId.mention"))
|
|
|
|
inline fun UserId.mention(parts: TextSourcesList) = mention(parts)
|
2021-02-08 12:15:54 +00:00
|
|
|
@Suppress("NOTHING_TO_INLINE")
|
2022-05-01 14:36:07 +00:00
|
|
|
@Deprecated("Replaced", ReplaceWith("mention", "dev.inmo.tgbotapi.types.message.textsources.mention"))
|
|
|
|
inline fun mention(parts: TextSourcesList, id: Identifier) = mention(parts, id)
|
2021-02-08 12:15:54 +00:00
|
|
|
@Suppress("NOTHING_TO_INLINE")
|
2022-05-01 14:36:07 +00:00
|
|
|
@Deprecated("Replaced", ReplaceWith("Identifier.mention", "dev.inmo.tgbotapi.types.message.textsources.Identifier.mention"))
|
|
|
|
inline fun Identifier.mention(parts: TextSourcesList) = mention(parts)
|
2021-02-08 12:15:54 +00:00
|
|
|
@Suppress("NOTHING_TO_INLINE")
|
2022-05-01 14:36:07 +00:00
|
|
|
inline fun mention(user: User, vararg parts: TextSource) = mention(user, *parts)
|
2020-11-06 12:52:59 +00:00
|
|
|
@Suppress("NOTHING_TO_INLINE")
|
2022-05-01 14:36:07 +00:00
|
|
|
@Deprecated("Replaced", ReplaceWith("mention", "dev.inmo.tgbotapi.types.message.textsources.mention"))
|
|
|
|
inline fun mention(text: String, user: User) = mention(text, user)
|
2021-02-08 12:15:54 +00:00
|
|
|
@Suppress("NOTHING_TO_INLINE")
|
2022-05-01 14:36:07 +00:00
|
|
|
@Deprecated("Replaced", ReplaceWith("User.mention", "dev.inmo.tgbotapi.types.message.textsources.User.mention"))
|
|
|
|
inline fun User.mention(text: String) = mention(text)
|
2021-02-08 12:15:54 +00:00
|
|
|
@Suppress("NOTHING_TO_INLINE")
|
2022-05-01 14:36:07 +00:00
|
|
|
@Deprecated("Replaced", ReplaceWith("mention", "dev.inmo.tgbotapi.types.message.textsources.mention"))
|
|
|
|
inline fun mention(text: String, userId: UserId) = mention(text, userId)
|
2021-02-08 12:15:54 +00:00
|
|
|
@Suppress("NOTHING_TO_INLINE")
|
2022-05-01 14:36:07 +00:00
|
|
|
@Deprecated("Replaced", ReplaceWith("UserId.mention", "dev.inmo.tgbotapi.types.message.textsources.UserId.mention"))
|
|
|
|
inline fun UserId.mention(text: String) = mention(text)
|
2021-02-08 12:15:54 +00:00
|
|
|
@Suppress("NOTHING_TO_INLINE")
|
2022-05-01 14:36:07 +00:00
|
|
|
@Deprecated("Replaced", ReplaceWith("mention", "dev.inmo.tgbotapi.types.message.textsources.mention"))
|
|
|
|
inline fun mention(text: String, id: Identifier) = mention(text, id)
|
2021-02-08 12:15:54 +00:00
|
|
|
@Suppress("NOTHING_TO_INLINE")
|
2022-05-01 14:36:07 +00:00
|
|
|
@Deprecated("Replaced", ReplaceWith("Identifier.mention", "dev.inmo.tgbotapi.types.message.textsources.Identifier.mention"))
|
|
|
|
inline fun Identifier.mention(text: String) = mention(text)
|