Package dev. inmo. tgbotapi. types. Message Entity. textsources
Types
Link copied to clipboard
data class BoldTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class CashTagTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class EMailTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
data class HashTagTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
data class ItalicTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
data class MentionTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class PhoneNumberTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
data class PreTextSource constructor(source: String, language: String?) : TextSource
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class SpoilerTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
data class StrikethroughTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
data class TextLinkTextSource constructor(source: String, url: String) : TextSource
Content copied to clipboard
Link copied to clipboard
data class TextMentionTextSource constructor(source: String, user: User, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class UnderlineTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Without sharp (#)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun Identifier.mention(parts: TextSourcesList): TextMentionTextSource
Content copied to clipboard
inline fun mention(user: User, vararg parts: TextSource): TextMentionTextSource
Content copied to clipboard
inline fun mention(parts: TextSourcesList, userId: UserId): TextMentionTextSource
Content copied to clipboard
inline fun mention(parts: TextSourcesList, user: User): TextMentionTextSource
Content copied to clipboard
inline fun mention(parts: TextSourcesList, id: Identifier): TextMentionTextSource
Content copied to clipboard
Without leading "@"
Link copied to clipboard
Link copied to clipboard
inline operator fun TextSource.plus(other: List<TextSource>): List<TextSource>
Content copied to clipboard
inline operator fun List<TextSource>.plus(text: String): List<TextSource>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
This method will prepare TextSources list for messages. Remember, that first part will be separated with captionLength and all others with
Link copied to clipboard
fun List<TextSource>.separateForMessage(limit: IntRange, numberOfParts: Int? = null): List<List<TextSource>>
Content copied to clipboard
Link copied to clipboard
This method will prepare TextSources list for messages with textLength
Link copied to clipboard
Link copied to clipboard
inline fun strikethrough(vararg parts: TextSource): StrikethroughTextSource
Content copied to clipboard
inline fun strikethrough(parts: TextSourcesList): StrikethroughTextSource
Content copied to clipboard
Link copied to clipboard