Package-level declarations

Types

Link copied to clipboard
@Serializable
data class BlockquoteTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
@Serializable
data class BoldTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
@Serializable
data class BotCommandTextSource(val source: String) : TextSource
Link copied to clipboard
@Serializable
data class CashTagTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
@Serializable
data class CodeTextSource(val source: String) : TextSource
Link copied to clipboard
@Serializable
data class CustomEmojiTextSource(val source: String, val customEmojiId: CustomEmojiId, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
@Serializable
data class EMailTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
@Serializable
data class ExpandableBlockquoteTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
@Serializable
data class HashTagTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
@Serializable
data class ItalicTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
@Serializable
data class MentionTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
@Serializable(with = TextSourceSerializer::class)
sealed interface MultilevelTextSource : TextSource
Link copied to clipboard
@Serializable
data class PhoneNumberTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
@Serializable
data class PreTextSource(val source: String, val language: String? = null) : TextSource
Link copied to clipboard
@Serializable
data class RegularTextSource(val source: String) : TextSource
Link copied to clipboard
@Serializable
data class SpoilerTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
@Serializable
data class StrikethroughTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
@Serializable
data class TextLinkTextSource(val source: String, val url: String) : TextSource
Link copied to clipboard
@Serializable
data class TextMentionTextSource(val source: String, val user: User, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
@Serializable(with = TextSourceSerializer::class)
sealed interface TextSource
Link copied to clipboard
object TextSourceSerializer : TypedSerializer<TextSource>
Link copied to clipboard
Link copied to clipboard
@Serializable
data class UnderlineTextSource(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Link copied to clipboard
@Serializable
data class URLTextSource(val source: String) : TextSource

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
operator fun TextSource.plus(other: TextSource): List<TextSource>
operator fun TextSource.plus(text: String): List<TextSource>
operator fun TextSource.plus(other: List<TextSource>): List<TextSource>
operator fun List<TextSource>.plus(text: String): List<TextSource>
Link copied to clipboard
inline 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 messages. 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 messages with textLength

Link copied to clipboard
Link copied to clipboard
inline fun textSourcesOrElse(textSources: TextSourcesList, block: () -> TextSourcesList): TextSourcesList
Link copied to clipboard