1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-05 07:53:47 +00:00
tgbotapi/docs/dev.inmo.tgbotapi.extensions.utils.formatting/-entities-builder/index.md
2021-03-17 15:18:37 +00:00

17 KiB

//docs/dev.inmo.tgbotapi.extensions.utils.formatting/EntitiesBuilder

EntitiesBuilder

[common] class EntitiesBuilder

This builder can be used to provide building of TextSources List

See also

common

buildEntities

Functions

Name Summary
add [common]
Content
fun add(source: TextSource)


build [common]
Content
fun build(): List<TextSource>


invoke [common]
Content
operator fun invoke(vararg source: TextSource): Boolean


unaryPlus [common]
Content
operator fun TextSource.unaryPlus()
operator fun String.unaryPlus()
operator fun List<TextSource>.unaryPlus(): Boolean


Properties

Name Summary
entities [common] val entities: List<TextSource>It is not safe field which contains potentially changeable List

Extensions

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


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


cashTag [common]
Content
inline fun EntitiesBuilder.cashTag(parts: List<TextSource>)
inline fun EntitiesBuilder.cashTag(vararg parts: TextSource)
inline fun EntitiesBuilder.cashTag(text: String)


code [common]
Content
inline fun EntitiesBuilder.code(code: String)


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


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


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


link [common]
Content
inline fun EntitiesBuilder.link(text: String, url: String)
inline fun EntitiesBuilder.link(url: String)


mention [common]
Content
inline fun EntitiesBuilder.mention(parts: List<TextSource>)
inline fun EntitiesBuilder.mention(vararg parts: TextSource)
inline fun EntitiesBuilder.mention(whoToMention: String)
inline fun EntitiesBuilder.mention(parts: List<TextSource>, user: User)
inline fun EntitiesBuilder.mention(user: User, vararg parts: TextSource)
inline fun EntitiesBuilder.mention(text: String, user: User)


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


pre [common]
Content
inline fun EntitiesBuilder.pre(code: String, language: String?)


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


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


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