EntitiesBuilder

class EntitiesBuilder

This builder can be used to provide building of TextSources List

See also

Functions

add
Link copied to clipboard
common
fun add(source: TextSource): EntitiesBuilder
addAll
Link copied to clipboard
common
fun addAll(sources: Iterable<TextSource>): EntitiesBuilder
build
Link copied to clipboard
common
fun build(): TextSourcesList
invoke
Link copied to clipboard
common
operator fun invoke(vararg source: TextSource): EntitiesBuilder
plus
Link copied to clipboard
common
operator fun plus(other: EntitiesBuilder): EntitiesBuilder
operator fun plus(source: TextSource): EntitiesBuilder
operator fun plus(text: String): EntitiesBuilder
operator fun plus(sources: Iterable<TextSource>): EntitiesBuilder
unaryPlus
Link copied to clipboard
common
operator fun TextSource.unaryPlus(): EntitiesBuilder
operator fun String.unaryPlus(): EntitiesBuilder
operator fun TextSourcesList.unaryPlus(): EntitiesBuilder

Properties

entities
Link copied to clipboard
common
val entities: TextSourcesList

It is not safe field which contains potentially changeable List

separator
Link copied to clipboard
common
val separator: TextSource? = null

Extensions

bold
Link copied to clipboard
common
inline fun EntitiesBuilder.bold(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.bold(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.bold(text: String): EntitiesBuilder
inline fun EntitiesBuilder.bold(noinline init: EntitiesBuilderBody): EntitiesBuilder
boldln
Link copied to clipboard
common
inline fun EntitiesBuilder.boldln(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.boldln(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.boldln(text: String): EntitiesBuilder

Version of EntitiesBuilder.bold with new line at the end

inline fun EntitiesBuilder.boldln(noinline init: EntitiesBuilderBody): EntitiesBuilder

Version of EntitiesBuilder.bold with new line at the end. Will reuse separator config from buildEntities

botCommand
Link copied to clipboard
common
botCommandln
Link copied to clipboard
common
inline fun EntitiesBuilder.botCommandln(command: String): EntitiesBuilder

Version of EntitiesBuilder.botCommand with new line at the end

cashTag
Link copied to clipboard
common
inline fun EntitiesBuilder.cashTag(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.cashTag(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.cashTag(text: String): EntitiesBuilder
inline fun EntitiesBuilder.cashTag(noinline init: EntitiesBuilderBody): EntitiesBuilder
cashTagln
Link copied to clipboard
common
inline fun EntitiesBuilder.cashTagln(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.cashTagln(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.cashTagln(text: String): EntitiesBuilder

Version of EntitiesBuilder.cashTag with new line at the end

inline fun EntitiesBuilder.cashTagln(noinline init: EntitiesBuilderBody): EntitiesBuilder

Version of EntitiesBuilder.cashTag with new line at the end. Will reuse separator config from buildEntities

code
Link copied to clipboard
common
codeln
Link copied to clipboard
common
inline fun EntitiesBuilder.codeln(code: String): EntitiesBuilder

Version of EntitiesBuilder.code with new line at the end

email
Link copied to clipboard
common
inline fun EntitiesBuilder.email(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.email(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.email(emailAddress: String): EntitiesBuilder
inline fun EntitiesBuilder.email(noinline init: EntitiesBuilderBody): EntitiesBuilder
emailln
Link copied to clipboard
common
inline fun EntitiesBuilder.emailln(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.emailln(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.emailln(emailAddress: String): EntitiesBuilder

Version of EntitiesBuilder.email with new line at the end

inline fun EntitiesBuilder.emailln(noinline init: EntitiesBuilderBody): EntitiesBuilder

Version of EntitiesBuilder.email with new line at the end. Will reuse separator config from buildEntities

hashtag
Link copied to clipboard
common
inline fun EntitiesBuilder.hashtag(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.hashtag(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.hashtag(hashtag: String): EntitiesBuilder
inline fun EntitiesBuilder.hashtag(noinline init: EntitiesBuilderBody): EntitiesBuilder
hashtagln
Link copied to clipboard
common
inline fun EntitiesBuilder.hashtagln(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.hashtagln(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.hashtagln(hashtag: String): EntitiesBuilder

Version of EntitiesBuilder.hashtag with new line at the end

inline fun EntitiesBuilder.hashtagln(noinline init: EntitiesBuilderBody): EntitiesBuilder

Version of EntitiesBuilder.hashtag with new line at the end. Will reuse separator config from buildEntities

italic
Link copied to clipboard
common
inline fun EntitiesBuilder.italic(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.italic(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.italic(text: String): EntitiesBuilder
inline fun EntitiesBuilder.italic(noinline init: EntitiesBuilderBody): EntitiesBuilder
italicln
Link copied to clipboard
common
inline fun EntitiesBuilder.italicln(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.italicln(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.italicln(text: String): EntitiesBuilder

Version of EntitiesBuilder.italic with new line at the end

inline fun EntitiesBuilder.italicln(noinline init: EntitiesBuilderBody): EntitiesBuilder

Version of EntitiesBuilder.italic with new line at the end. Will reuse separator config from buildEntities

link
Link copied to clipboard
common
inline fun EntitiesBuilder.link(text: String, url: String): EntitiesBuilder
inline fun EntitiesBuilder.link(url: String): EntitiesBuilder
linkln
Link copied to clipboard
common
inline fun EntitiesBuilder.linkln(text: String, url: String): EntitiesBuilder
inline fun EntitiesBuilder.linkln(url: String): EntitiesBuilder

Version of EntitiesBuilder.link with new line at the end

mention
Link copied to clipboard
common
inline fun EntitiesBuilder.mention(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.mention(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.mention(whoToMention: String): EntitiesBuilder
inline fun EntitiesBuilder.mention(parts: TextSourcesList, user: User): EntitiesBuilder
inline fun EntitiesBuilder.mention(text: String, user: User): EntitiesBuilder
inline fun EntitiesBuilder.mention(noinline init: EntitiesBuilderBody): EntitiesBuilder
inline fun EntitiesBuilder.mention(user: User, vararg parts: TextSource): EntitiesBuilder
mentionln
Link copied to clipboard
common
inline fun EntitiesBuilder.mentionln(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.mentionln(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.mentionln(whoToMention: String): EntitiesBuilder
inline fun EntitiesBuilder.mentionln(parts: TextSourcesList, user: User): EntitiesBuilder
inline fun EntitiesBuilder.mentionln(user: User, vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.mentionln(text: String, user: User): EntitiesBuilder

Version of EntitiesBuilder.mention with new line at the end

inline fun EntitiesBuilder.mentionln(noinline init: EntitiesBuilderBody): EntitiesBuilder

Version of EntitiesBuilder.mention with new line at the end. Will reuse separator config from buildEntities

phone
Link copied to clipboard
common
inline fun EntitiesBuilder.phone(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.phone(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.phone(number: String): EntitiesBuilder
inline fun EntitiesBuilder.phone(noinline init: EntitiesBuilderBody): EntitiesBuilder
phoneln
Link copied to clipboard
common
inline fun EntitiesBuilder.phoneln(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.phoneln(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.phoneln(number: String): EntitiesBuilder

Version of EntitiesBuilder.phone with new line at the end

inline fun EntitiesBuilder.phoneln(noinline init: EntitiesBuilderBody): EntitiesBuilder

Version of EntitiesBuilder.phone with new line at the end. Will reuse separator config from buildEntities

pre
Link copied to clipboard
common
inline fun EntitiesBuilder.pre(code: String, language: String?): EntitiesBuilder
preln
Link copied to clipboard
common
inline fun EntitiesBuilder.preln(code: String, language: String?): List<TextSource>

Version of EntitiesBuilder.pre with new line at the end

regular
Link copied to clipboard
common
inline fun EntitiesBuilder.regular(text: String): EntitiesBuilder
regularln
Link copied to clipboard
common
inline fun EntitiesBuilder.regularln(text: String): EntitiesBuilder
strikethrough
Link copied to clipboard
common
inline fun EntitiesBuilder.strikethrough(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.strikethrough(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.strikethrough(text: String): EntitiesBuilder
inline fun EntitiesBuilder.strikethrough(noinline init: EntitiesBuilderBody): EntitiesBuilder

Add strikethrough using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.strikethrough. Will reuse separator config from buildEntities

strikethroughln
Link copied to clipboard
common
inline fun EntitiesBuilder.strikethroughln(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.strikethroughln(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.strikethroughln(text: String): EntitiesBuilder

Version of EntitiesBuilder.strikethrough with new line at the end

inline fun EntitiesBuilder.strikethroughln(noinline init: EntitiesBuilderBody): EntitiesBuilder

Version of EntitiesBuilder.strikethrough with new line at the end. Will reuse separator config from buildEntities

underline
Link copied to clipboard
common
inline fun EntitiesBuilder.underline(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.underline(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.underline(text: String): EntitiesBuilder
inline fun EntitiesBuilder.underline(noinline init: EntitiesBuilderBody): EntitiesBuilder

Add underline using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.underline. Will reuse separator config from buildEntities

underlineln
Link copied to clipboard
common
inline fun EntitiesBuilder.underlineln(parts: TextSourcesList): EntitiesBuilder
inline fun EntitiesBuilder.underlineln(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.underlineln(text: String): EntitiesBuilder

Version of EntitiesBuilder.underline with new line at the end

inline fun EntitiesBuilder.underlineln(noinline init: EntitiesBuilderBody): EntitiesBuilder

Version of EntitiesBuilder.underline with new line at the end. Will reuse separator config from buildEntities