Package dev.inmo.tgbotapi.types.MessageEntity.textsources

Types

BoldTextSource
Link copied to clipboard
common
data class BoldTextSource constructor(source: String, subsources: List<TextSource>) : MultilevelTextSource
BotCommandTextSource
Link copied to clipboard
common
data class BotCommandTextSource constructor(source: String) : TextSource
CashTagTextSource
Link copied to clipboard
common
data class CashTagTextSource constructor(source: String, subsources: List<TextSource>) : MultilevelTextSource
CodeTextSource
Link copied to clipboard
common
data class CodeTextSource constructor(source: String) : TextSource
EMailTextSource
Link copied to clipboard
common
data class EMailTextSource constructor(source: String, subsources: List<TextSource>) : MultilevelTextSource
HashTagTextSource
Link copied to clipboard
common
data class HashTagTextSource constructor(source: String, subsources: List<TextSource>) : MultilevelTextSource
ItalicTextSource
Link copied to clipboard
common
data class ItalicTextSource constructor(source: String, subsources: List<TextSource>) : MultilevelTextSource
MentionTextSource
Link copied to clipboard
common
data class MentionTextSource constructor(source: String, subsources: List<TextSource>) : MultilevelTextSource
PhoneNumberTextSource
Link copied to clipboard
common
data class PhoneNumberTextSource constructor(source: String, subsources: List<TextSource>) : MultilevelTextSource
PreTextSource
Link copied to clipboard
common
data class PreTextSource constructor(source: String, language: String?) : TextSource
RegularTextSource
Link copied to clipboard
common
data class RegularTextSource constructor(source: String) : TextSource
StrikethroughTextSource
Link copied to clipboard
common
data class StrikethroughTextSource constructor(source: String, subsources: List<TextSource>) : MultilevelTextSource
TextLinkTextSource
Link copied to clipboard
common
data class TextLinkTextSource constructor(source: String, url: String) : TextSource
TextMentionTextSource
Link copied to clipboard
common
data class TextMentionTextSource constructor(source: String, user: User, subsources: List<TextSource>) : MultilevelTextSource
UnderlineTextSource
Link copied to clipboard
common
data class UnderlineTextSource constructor(source: String, subsources: List<TextSource>) : MultilevelTextSource
URLTextSource
Link copied to clipboard
common
data class URLTextSource constructor(source: String) : TextSource

Functions

bold
Link copied to clipboard
common
inline fun bold(vararg parts: Array<Out TextSource>): BoldTextSource
inline fun bold(text: String): BoldTextSource
inline fun bold(parts: List<TextSource>): BoldTextSource
botCommand
Link copied to clipboard
common
inline fun botCommand(command: String): BotCommandTextSource
cashTag
Link copied to clipboard
common
inline fun cashTag(vararg parts: Array<Out TextSource>): CashTagTextSource
inline fun cashTag(tag: String): CashTagTextSource
inline fun cashTag(parts: List<TextSource>): CashTagTextSource
code
Link copied to clipboard
common
inline fun code(code: String): CodeTextSource
email
Link copied to clipboard
common
inline fun email(vararg parts: Array<Out TextSource>): EMailTextSource
inline fun email(emailAddress: String): EMailTextSource
inline fun email(parts: List<TextSource>): EMailTextSource
hashtag
Link copied to clipboard
common
inline fun hashtag(vararg parts: Array<Out TextSource>): HashTagTextSource
inline fun hashtag(parts: List<TextSource>): HashTagTextSource

Without sharp (#)

common
inline fun hashtag(hashtag: String): HashTagTextSource
italic
Link copied to clipboard
common
inline fun italic(vararg parts: Array<Out TextSource>): ItalicTextSource
inline fun italic(text: String): ItalicTextSource
inline fun italic(parts: List<TextSource>): ItalicTextSource
link
Link copied to clipboard
common
inline fun link(url: String): URLTextSource
inline fun link(text: String, url: String): TextLinkTextSource
mention
Link copied to clipboard
common
inline fun mention(vararg parts: Array<Out TextSource>): MentionTextSource
inline fun mention(parts: List<TextSource>): MentionTextSource
inline fun mention(user: User, vararg parts: Array<Out TextSource>): TextMentionTextSource
inline fun mention(text: String, user: User): TextMentionTextSource
inline fun mention(parts: List<TextSource>, user: User): TextMentionTextSource

Without leading "@"

common
inline fun mention(whoToMention: String): MentionTextSource
phone
Link copied to clipboard
common
inline fun phone(vararg parts: Array<Out TextSource>): PhoneNumberTextSource
inline fun phone(number: String): PhoneNumberTextSource
inline fun phone(parts: List<TextSource>): PhoneNumberTextSource
pre
Link copied to clipboard
common
inline fun pre(code: String, language: String?): PreTextSource
regular
Link copied to clipboard
common
inline fun regular(text: String): RegularTextSource
strikethrough
Link copied to clipboard
common
inline fun strikethrough(vararg parts: Array<Out TextSource>): StrikethroughTextSource
inline fun strikethrough(text: String): StrikethroughTextSource
inline fun strikethrough(parts: List<TextSource>): StrikethroughTextSource
underline
Link copied to clipboard
common
inline fun underline(vararg parts: Array<Out TextSource>): UnderlineTextSource
inline fun underline(text: String): UnderlineTextSource
inline fun underline(parts: List<TextSource>): UnderlineTextSource