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: 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: 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: 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: TextSource): HashTagTextSource
inline fun hashtag(parts: List<TextSource>): HashTagTextSource
inline fun hashtag(hashtag: String): HashTagTextSource
Without sharp (#)
italic
Link copied to clipboard
common
inline fun italic(vararg parts: 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: TextSource): MentionTextSource
inline fun mention(parts: List<TextSource>): MentionTextSource
inline fun UserId.mention(text: String): TextMentionTextSource
inline fun UserId.mention(parts: List<TextSource>): TextMentionTextSource
inline fun User.mention(text: String): TextMentionTextSource
inline fun User.mention(parts: List<TextSource>): TextMentionTextSource
inline fun Identifier.mention(text: String): TextMentionTextSource
inline fun Identifier.mention(parts: List<TextSource>): TextMentionTextSource
inline fun mention(user: User, vararg parts: TextSource): TextMentionTextSource
inline fun mention(text: String, userId: UserId): TextMentionTextSource
inline fun mention(text: String, user: User): TextMentionTextSource
inline fun mention(text: String, id: Identifier): TextMentionTextSource
inline fun mention(parts: List<TextSource>, userId: UserId): TextMentionTextSource
inline fun mention(parts: List<TextSource>, user: User): TextMentionTextSource
inline fun mention(parts: List<TextSource>, id: Identifier): TextMentionTextSource
inline fun mention(whoToMention: String): MentionTextSource
Without leading "@"
phone
Link copied to clipboard
common
inline fun phone(vararg parts: 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? = null): PreTextSource
regular
Link copied to clipboard
common
inline fun regular(text: String): RegularTextSource
strikethrough
Link copied to clipboard
common
inline fun strikethrough(vararg parts: 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: TextSource): UnderlineTextSource
inline fun underline(text: String): UnderlineTextSource
inline fun underline(parts: List<TextSource>): UnderlineTextSource