1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-23 10:38:43 +00:00
tgbotapi/docs/dev.inmo.tgbotapi.types.MessageEntity.textsources/index.md
2021-03-17 15:18:37 +00:00

27 KiB

//docs/dev.inmo.tgbotapi.types.MessageEntity.textsources

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

Types

Name Summary
BoldTextSource [common]
Content
data class BoldTextSourceconstructor(source: String, subsources: List<TextSource>) : MultilevelTextSource


BotCommandTextSource [common]
Content
data class BotCommandTextSourceconstructor(source: String) : TextSource


CashTagTextSource [common]
Content
data class CashTagTextSourceconstructor(source: String, subsources: List<TextSource>) : MultilevelTextSource


CodeTextSource [common]
Content
data class CodeTextSourceconstructor(source: String) : TextSource


EMailTextSource [common]
Content
data class EMailTextSourceconstructor(source: String, subsources: List<TextSource>) : MultilevelTextSource


HashTagTextSource [common]
Content
data class HashTagTextSourceconstructor(source: String, subsources: List<TextSource>) : MultilevelTextSource


ItalicTextSource [common]
Content
data class ItalicTextSourceconstructor(source: String, subsources: List<TextSource>) : MultilevelTextSource


MentionTextSource [common]
Content
data class MentionTextSourceconstructor(source: String, subsources: List<TextSource>) : MultilevelTextSource


PhoneNumberTextSource [common]
Content
data class PhoneNumberTextSourceconstructor(source: String, subsources: List<TextSource>) : MultilevelTextSource


PreTextSource [common]
Content
data class PreTextSourceconstructor(source: String, language: String?) : TextSource


RegularTextSource [common]
Content
data class RegularTextSourceconstructor(source: String) : TextSource


StrikethroughTextSource [common]
Content
data class StrikethroughTextSourceconstructor(source: String, subsources: List<TextSource>) : MultilevelTextSource


TextLinkTextSource [common]
Content
data class TextLinkTextSourceconstructor(source: String, url: String) : TextSource


TextMentionTextSource [common]
Content
data class TextMentionTextSourceconstructor(source: String, user: User, subsources: List<TextSource>) : MultilevelTextSource


UnderlineTextSource [common]
Content
data class UnderlineTextSourceconstructor(source: String, subsources: List<TextSource>) : MultilevelTextSource


URLTextSource [common]
Content
data class URLTextSourceconstructor(source: String) : TextSource


Functions

Name Summary
bold [common]
Content
inline fun bold(vararg parts: TextSource): BoldTextSource
inline fun bold(text: String): BoldTextSource
inline fun bold(parts: List<TextSource>): BoldTextSource


botCommand [common]
Content
inline fun botCommand(command: String): BotCommandTextSource


cashTag [common]
Content
inline fun cashTag(vararg parts: TextSource): CashTagTextSource
inline fun cashTag(tag: String): CashTagTextSource
inline fun cashTag(parts: List<TextSource>): CashTagTextSource


code [common]
Content
inline fun code(code: String): CodeTextSource


email [common]
Content
inline fun email(vararg parts: TextSource): EMailTextSource
inline fun email(emailAddress: String): EMailTextSource
inline fun email(parts: List<TextSource>): EMailTextSource


hashtag [common]
Content
inline fun hashtag(vararg parts: TextSource): HashTagTextSource
inline fun hashtag(parts: List<TextSource>): HashTagTextSource


[common]
Content
inline fun hashtag(hashtag: String): HashTagTextSource
More info
Without sharp (#)


italic [common]
Content
inline fun italic(vararg parts: TextSource): ItalicTextSource
inline fun italic(text: String): ItalicTextSource
inline fun italic(parts: List<TextSource>): ItalicTextSource


link [common]
Content
inline fun link(url: String): URLTextSource
inline fun link(text: String, url: String): TextLinkTextSource


mention [common]
Content
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


[common]
Content
inline fun mention(whoToMention: String): MentionTextSource
More info
Without leading "@"


phone [common]
Content
inline fun phone(vararg parts: TextSource): PhoneNumberTextSource
inline fun phone(number: String): PhoneNumberTextSource
inline fun phone(parts: List<TextSource>): PhoneNumberTextSource


pre [common]
Content
inline fun pre(code: String, language: String? = null): PreTextSource


regular [common]
Content
inline fun regular(text: String): RegularTextSource


strikethrough [common]
Content
inline fun strikethrough(vararg parts: TextSource): StrikethroughTextSource
inline fun strikethrough(text: String): StrikethroughTextSource
inline fun strikethrough(parts: List<TextSource>): StrikethroughTextSource


underline [common]
Content
inline fun underline(vararg parts: TextSource): UnderlineTextSource
inline fun underline(text: String): UnderlineTextSource
inline fun underline(parts: List<TextSource>): UnderlineTextSource