Package dev. inmo. tgbotapi. types. Message Entity. textsources
Types
Bold Text Source
Link copied to clipboard
data class BoldTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Bot Command Text Source
Link copied to clipboard
Cash Tag Text Source
Link copied to clipboard
data class CashTagTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Code Text Source
Link copied to clipboard
EMail Text Source
Link copied to clipboard
data class EMailTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Hash Tag Text Source
Link copied to clipboard
data class HashTagTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Italic Text Source
Link copied to clipboard
data class ItalicTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Mention Text Source
Link copied to clipboard
data class MentionTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Multilevel Text Source
Link copied to clipboard
Mutable Text Sources List
Link copied to clipboard
Phone Number Text Source
Link copied to clipboard
data class PhoneNumberTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Pre Text Source
Link copied to clipboard
data class PreTextSource constructor(source: String, language: String?) : TextSource
Content copied to clipboard
Regular Text Source
Link copied to clipboard
Spoiler Text Source
Link copied to clipboard
data class SpoilerTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Strikethrough Text Source
Link copied to clipboard
data class StrikethroughTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Text Link Text Source
Link copied to clipboard
data class TextLinkTextSource constructor(source: String, url: String) : TextSource
Content copied to clipboard
Text Mention Text Source
Link copied to clipboard
data class TextMentionTextSource constructor(source: String, user: User, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
Text Source
Link copied to clipboard
Text Source Serializer
Link copied to clipboard
Text Sources List
Link copied to clipboard
Underline Text Source
Link copied to clipboard
data class UnderlineTextSource constructor(source: String, subsources: TextSourcesList) : MultilevelTextSource
Content copied to clipboard
URLText Source
Link copied to clipboard
Functions
bold
Link copied to clipboard
bot Command
Link copied to clipboard
cash Tag
Link copied to clipboard
code
Link copied to clipboard
email
Link copied to clipboard
hashtag
Link copied to clipboard
Without sharp (#)
italic
Link copied to clipboard
link
Link copied to clipboard
mention
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 "@"
phone
Link copied to clipboard
plus
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
pre
Link copied to clipboard
regular
Link copied to clipboard
separate For Caption
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
separate For Message
Link copied to clipboard
fun List<TextSource>.separateForMessage(limit: IntRange, numberOfParts: Int? = null): List<List<TextSource>>
Content copied to clipboard
separate For Text
Link copied to clipboard
This method will prepare TextSources list for messages with textLength
spoiler
Link copied to clipboard
strikethrough
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
underline
Link copied to clipboard
Properties
DirectInvocationOfTextSourceConstructor
Link copied to clipboard