Package dev. inmo. tgbotapi. types. message. textsources
Types
Link copied to clipboard
data class BoldTextSource constructor(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
data class BotCommandTextSource constructor(val source: String) : TextSource
Content copied to clipboard
Link copied to clipboard
data class CashTagTextSource constructor(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class EMailTextSource constructor(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
data class HashTagTextSource constructor(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
data class ItalicTextSource constructor(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
data class MentionTextSource constructor(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class PhoneNumberTextSource constructor(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
data class PreTextSource constructor(val source: String, val language: String? = null) : TextSource
Content copied to clipboard
Link copied to clipboard
data class RegularTextSource constructor(val source: String) : TextSource
Content copied to clipboard
Link copied to clipboard
data class SpoilerTextSource constructor(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
data class StrikethroughTextSource constructor(val source: String, val subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Link copied to clipboard
data class TextLinkTextSource constructor(val source: String, val url: String) : TextSource
Content copied to clipboard
Link copied to clipboard
data class TextMentionTextSource constructor( val source: String, val user: User, val 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(val source: String, val 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
inline fun textSourcesOrElse(textSources: TextSourcesList, block: () -> TextSourcesList): TextSourcesList
Content copied to clipboard
Link copied to clipboard
inline fun textSourcesOrElseTextSource(textSources: TextSourcesList, block: () -> TextSource): TextSourcesList
Content copied to clipboard
Link copied to clipboard