Package-level declarations

Types

Link copied to clipboard
data class BlockquoteTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
data class BoldTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
data class BotCommandTextSource(val source: String) : TextSource
Link copied to clipboard
data class CashTagTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
data class CodeTextSource(val source: String) : TextSource
Link copied to clipboard
data class CustomEmojiTextSource(val source: String, val customEmojiId: CustomEmojiId, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
data class DateTimeTextSource(val source: String, val unixTimeStamp: UnixTimeStamp, val dateTimeFormat: String?) : TextSource
Link copied to clipboard
data class EMailTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
Link copied to clipboard
data class HashTagTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
data class ItalicTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
data class MentionTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
sealed interface MultilevelTextSource : TextSource
Link copied to clipboard
data class PhoneNumberTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
data class PreTextSource(val source: String, val language: String? = null) : TextSource
Link copied to clipboard
data class RegularTextSource(val source: String) : TextSource
Link copied to clipboard
data class SpoilerTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
data class StrikethroughTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
data class TextLinkTextSource(val source: String, val url: String) : TextSource
Link copied to clipboard
data class TextMentionTextSource(val source: String, val user: User, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
sealed interface TextSource
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class UnderlineTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
data class URLTextSource(val source: String) : TextSource

Functions

Link copied to clipboard
fun blockquoteTextSource(vararg parts: TextSource): <Error class: unknown class>
fun blockquoteTextSource(text: String): <Error class: unknown class>
Link copied to clipboard
fun boldTextSource(vararg parts: TextSource): <Error class: unknown class>
fun boldTextSource(text: String): <Error class: unknown class>
Link copied to clipboard
fun cashTagTextSource(vararg parts: TextSource): <Error class: unknown class>
fun cashTagTextSource(tag: String): <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
fun customEmojiTextSource(emojiId: CustomEmojiId, vararg parts: TextSource): <Error class: unknown class>

fun customEmojiTextSource(emojiId: CustomEmojiId, text: String): <Error class: unknown class>

Without sharp (#)

Link copied to clipboard
fun dateTimeTextSource(text: String, unixTimeStamp: UnixTimeStamp, dateTimeFormat: String?): DateTimeTextSource
Link copied to clipboard
fun emailTextSource(vararg parts: TextSource): <Error class: unknown class>
fun emailTextSource(emailAddress: String): <Error class: unknown class>
Link copied to clipboard
fun expandableBlockquoteTextSource(vararg parts: TextSource): <Error class: unknown class>
fun expandableBlockquoteTextSource(text: String): <Error class: unknown class>
Link copied to clipboard
fun hashtagTextSource(vararg parts: TextSource): <Error class: unknown class>
fun hashtagTextSource(parts: TextSourcesList): <Error class: unknown class>

fun hashtagTextSource(hashtag: String): <Error class: unknown class>

Without sharp (#)

Link copied to clipboard
fun italicTextSource(vararg parts: TextSource): <Error class: unknown class>
fun italicTextSource(text: String): <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
fun mentionTextSource(whoToMention: Username): <Error class: unknown class>
fun mentionTextSource(vararg parts: TextSource): <Error class: unknown class>
fun mentionTextSource(parts: TextSourcesList): <Error class: unknown class>

fun mentionTextSource(whoToMention: String): <Error class: unknown class>

Without leading "@"

Link copied to clipboard
fun phoneTextSource(vararg parts: TextSource): <Error class: unknown class>
fun phoneTextSource(number: String): <Error class: unknown class>
Link copied to clipboard
operator fun TextSource.plus(other: TextSource): <Error class: unknown class>
operator fun TextSource.plus(text: String): <Error class: unknown class>
operator fun TextSource.plus(other: List<TextSource>): <Error class: unknown class>
operator fun List<TextSource>.plus(text: String): List<TextSource>
Link copied to clipboard
fun preTextSource(code: String, language: String? = null): PreTextSource
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>>
Link copied to clipboard

This method will prepare TextSources list for messages with textLength

Link copied to clipboard

This method will prepare TextSources list for captions. Remember, that first part will be separated with captionLength and all others with

Link copied to clipboard
fun List<TextSource>.splitForMessage(limit: IntRange, numberOfParts: Int? = null): List<List<TextSource>>
Link copied to clipboard

This method will prepare TextSources list for stories

Link copied to clipboard

This method will prepare TextSources list for messages with textLength

Link copied to clipboard
fun spoilerTextSource(vararg parts: TextSource): <Error class: unknown class>
fun spoilerTextSource(text: String): <Error class: unknown class>
Link copied to clipboard
fun strikethroughTextSource(vararg parts: TextSource): <Error class: unknown class>
fun strikethroughTextSource(text: String): <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun underlineTextSource(vararg parts: TextSource): <Error class: unknown class>
fun underlineTextSource(text: String): <Error class: unknown class>