//[docs](../../index.md)/[dev.inmo.tgbotapi.types.MessageEntity.textsources](index.md) # Package dev.inmo.tgbotapi.types.MessageEntity.textsources ## Types | Name | Summary | |---|---| | [BoldTextSource](-bold-text-source/index.md)| [common]
Content
data class [BoldTextSource](-bold-text-source/index.md)constructor(**source**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **subsources**: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>) : [MultilevelTextSource](../dev.inmo.tgbotapi.CommonAbstracts/-multilevel-text-source/index.md)


| | [BotCommandTextSource](-bot-command-text-source/index.md)| [common]
Content
data class [BotCommandTextSource](-bot-command-text-source/index.md)constructor(**source**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)


| | [CashTagTextSource](-cash-tag-text-source/index.md)| [common]
Content
data class [CashTagTextSource](-cash-tag-text-source/index.md)constructor(**source**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **subsources**: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>) : [MultilevelTextSource](../dev.inmo.tgbotapi.CommonAbstracts/-multilevel-text-source/index.md)


| | [CodeTextSource](-code-text-source/index.md)| [common]
Content
data class [CodeTextSource](-code-text-source/index.md)constructor(**source**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)


| | [EMailTextSource](-e-mail-text-source/index.md)| [common]
Content
data class [EMailTextSource](-e-mail-text-source/index.md)constructor(**source**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **subsources**: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>) : [MultilevelTextSource](../dev.inmo.tgbotapi.CommonAbstracts/-multilevel-text-source/index.md)


| | [HashTagTextSource](-hash-tag-text-source/index.md)| [common]
Content
data class [HashTagTextSource](-hash-tag-text-source/index.md)constructor(**source**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **subsources**: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>) : [MultilevelTextSource](../dev.inmo.tgbotapi.CommonAbstracts/-multilevel-text-source/index.md)


| | [ItalicTextSource](-italic-text-source/index.md)| [common]
Content
data class [ItalicTextSource](-italic-text-source/index.md)constructor(**source**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **subsources**: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>) : [MultilevelTextSource](../dev.inmo.tgbotapi.CommonAbstracts/-multilevel-text-source/index.md)


| | [MentionTextSource](-mention-text-source/index.md)| [common]
Content
data class [MentionTextSource](-mention-text-source/index.md)constructor(**source**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **subsources**: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>) : [MultilevelTextSource](../dev.inmo.tgbotapi.CommonAbstracts/-multilevel-text-source/index.md)


| | [PhoneNumberTextSource](-phone-number-text-source/index.md)| [common]
Content
data class [PhoneNumberTextSource](-phone-number-text-source/index.md)constructor(**source**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **subsources**: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>) : [MultilevelTextSource](../dev.inmo.tgbotapi.CommonAbstracts/-multilevel-text-source/index.md)


| | [PreTextSource](-pre-text-source/index.md)| [common]
Content
data class [PreTextSource](-pre-text-source/index.md)constructor(**source**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **language**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?) : [TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)


| | [RegularTextSource](-regular-text-source/index.md)| [common]
Content
data class [RegularTextSource](-regular-text-source/index.md)constructor(**source**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)


| | [StrikethroughTextSource](-strikethrough-text-source/index.md)| [common]
Content
data class [StrikethroughTextSource](-strikethrough-text-source/index.md)constructor(**source**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **subsources**: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>) : [MultilevelTextSource](../dev.inmo.tgbotapi.CommonAbstracts/-multilevel-text-source/index.md)


| | [TextLinkTextSource](-text-link-text-source/index.md)| [common]
Content
data class [TextLinkTextSource](-text-link-text-source/index.md)constructor(**source**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **url**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)


| | [TextMentionTextSource](-text-mention-text-source/index.md)| [common]
Content
data class [TextMentionTextSource](-text-mention-text-source/index.md)constructor(**source**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **user**: [User](../dev.inmo.tgbotapi.types/-user/index.md), **subsources**: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>) : [MultilevelTextSource](../dev.inmo.tgbotapi.CommonAbstracts/-multilevel-text-source/index.md)


| | [UnderlineTextSource](-underline-text-source/index.md)| [common]
Content
data class [UnderlineTextSource](-underline-text-source/index.md)constructor(**source**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **subsources**: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>) : [MultilevelTextSource](../dev.inmo.tgbotapi.CommonAbstracts/-multilevel-text-source/index.md)


| | [URLTextSource](-u-r-l-text-source/index.md)| [common]
Content
data class [URLTextSource](-u-r-l-text-source/index.md)constructor(**source**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)


| ## Functions | Name | Summary | |---|---| | [bold](bold.md)| [common]
Content
inline fun [bold](bold.md)(vararg parts: [TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)): [BoldTextSource](-bold-text-source/index.md)
inline fun [bold](bold.md)(text: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [BoldTextSource](-bold-text-source/index.md)
inline fun [bold](bold.md)(parts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>): [BoldTextSource](-bold-text-source/index.md)


| | [botCommand](bot-command.md)| [common]
Content
inline fun [botCommand](bot-command.md)(command: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [BotCommandTextSource](-bot-command-text-source/index.md)


| | [cashTag](cash-tag.md)| [common]
Content
inline fun [cashTag](cash-tag.md)(vararg parts: [TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)): [CashTagTextSource](-cash-tag-text-source/index.md)
inline fun [cashTag](cash-tag.md)(tag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [CashTagTextSource](-cash-tag-text-source/index.md)
inline fun [cashTag](cash-tag.md)(parts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>): [CashTagTextSource](-cash-tag-text-source/index.md)


| | [code](code.md)| [common]
Content
inline fun [code](code.md)(code: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [CodeTextSource](-code-text-source/index.md)


| | [email](email.md)| [common]
Content
inline fun [email](email.md)(vararg parts: [TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)): [EMailTextSource](-e-mail-text-source/index.md)
inline fun [email](email.md)(emailAddress: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [EMailTextSource](-e-mail-text-source/index.md)
inline fun [email](email.md)(parts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>): [EMailTextSource](-e-mail-text-source/index.md)


| | [hashtag](hashtag.md)| [common]
Content
inline fun [hashtag](hashtag.md)(vararg parts: [TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)): [HashTagTextSource](-hash-tag-text-source/index.md)
inline fun [hashtag](hashtag.md)(parts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>): [HashTagTextSource](-hash-tag-text-source/index.md)


[common]
Content
inline fun [hashtag](hashtag.md)(hashtag: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [HashTagTextSource](-hash-tag-text-source/index.md)
More info
Without sharp (#)


| | [italic](italic.md)| [common]
Content
inline fun [italic](italic.md)(vararg parts: [TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)): [ItalicTextSource](-italic-text-source/index.md)
inline fun [italic](italic.md)(text: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [ItalicTextSource](-italic-text-source/index.md)
inline fun [italic](italic.md)(parts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>): [ItalicTextSource](-italic-text-source/index.md)


| | [link](link.md)| [common]
Content
inline fun [link](link.md)(url: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [URLTextSource](-u-r-l-text-source/index.md)
inline fun [link](link.md)(text: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), url: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [TextLinkTextSource](-text-link-text-source/index.md)


| | [mention](mention.md)| [common]
Content
inline fun [mention](mention.md)(vararg parts: [TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)): [MentionTextSource](-mention-text-source/index.md)
inline fun [mention](mention.md)(parts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>): [MentionTextSource](-mention-text-source/index.md)
inline fun [UserId](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FUserId%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[mention](mention.md)(text: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [TextMentionTextSource](-text-mention-text-source/index.md)
inline fun [UserId](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FUserId%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[mention](mention.md)(parts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>): [TextMentionTextSource](-text-mention-text-source/index.md)
inline fun [User](../dev.inmo.tgbotapi.types/-user/index.md).[mention](mention.md)(text: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [TextMentionTextSource](-text-mention-text-source/index.md)
inline fun [User](../dev.inmo.tgbotapi.types/-user/index.md).[mention](mention.md)(parts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>): [TextMentionTextSource](-text-mention-text-source/index.md)
inline fun [Identifier](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FIdentifier%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[mention](mention.md)(text: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [TextMentionTextSource](-text-mention-text-source/index.md)
inline fun [Identifier](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FIdentifier%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[mention](mention.md)(parts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>): [TextMentionTextSource](-text-mention-text-source/index.md)
inline fun [mention](mention.md)(user: [User](../dev.inmo.tgbotapi.types/-user/index.md), vararg parts: [TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)): [TextMentionTextSource](-text-mention-text-source/index.md)
inline fun [mention](mention.md)(text: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), userId: [UserId](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FUserId%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)): [TextMentionTextSource](-text-mention-text-source/index.md)
inline fun [mention](mention.md)(text: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), user: [User](../dev.inmo.tgbotapi.types/-user/index.md)): [TextMentionTextSource](-text-mention-text-source/index.md)
inline fun [mention](mention.md)(text: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), id: [Identifier](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FIdentifier%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)): [TextMentionTextSource](-text-mention-text-source/index.md)
inline fun [mention](mention.md)(parts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>, userId: [UserId](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FUserId%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)): [TextMentionTextSource](-text-mention-text-source/index.md)
inline fun [mention](mention.md)(parts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>, user: [User](../dev.inmo.tgbotapi.types/-user/index.md)): [TextMentionTextSource](-text-mention-text-source/index.md)
inline fun [mention](mention.md)(parts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>, id: [Identifier](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FIdentifier%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)): [TextMentionTextSource](-text-mention-text-source/index.md)


[common]
Content
inline fun [mention](mention.md)(whoToMention: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [MentionTextSource](-mention-text-source/index.md)
More info
Without leading "@"


| | [phone](phone.md)| [common]
Content
inline fun [phone](phone.md)(vararg parts: [TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)): [PhoneNumberTextSource](-phone-number-text-source/index.md)
inline fun [phone](phone.md)(number: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [PhoneNumberTextSource](-phone-number-text-source/index.md)
inline fun [phone](phone.md)(parts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>): [PhoneNumberTextSource](-phone-number-text-source/index.md)


| | [pre](pre.md)| [common]
Content
inline fun [pre](pre.md)(code: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), language: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null): [PreTextSource](-pre-text-source/index.md)


| | [regular](regular.md)| [common]
Content
inline fun [regular](regular.md)(text: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [RegularTextSource](-regular-text-source/index.md)


| | [strikethrough](strikethrough.md)| [common]
Content
inline fun [strikethrough](strikethrough.md)(vararg parts: [TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)): [StrikethroughTextSource](-strikethrough-text-source/index.md)
inline fun [strikethrough](strikethrough.md)(text: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [StrikethroughTextSource](-strikethrough-text-source/index.md)
inline fun [strikethrough](strikethrough.md)(parts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>): [StrikethroughTextSource](-strikethrough-text-source/index.md)


| | [underline](underline.md)| [common]
Content
inline fun [underline](underline.md)(vararg parts: [TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)): [UnderlineTextSource](-underline-text-source/index.md)
inline fun [underline](underline.md)(text: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [UnderlineTextSource](-underline-text-source/index.md)
inline fun [underline](underline.md)(parts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>): [UnderlineTextSource](-underline-text-source/index.md)


|