|
|
@ -10,10 +10,10 @@ import dev.inmo.tgbotapi.types.chat.User
|
|
|
|
import dev.inmo.tgbotapi.types.message.textsources.*
|
|
|
|
import dev.inmo.tgbotapi.types.message.textsources.*
|
|
|
|
|
|
|
|
|
|
|
|
typealias EntitiesBuilderBody = EntitiesBuilder.() -> Unit
|
|
|
|
typealias EntitiesBuilderBody = EntitiesBuilder.() -> Unit
|
|
|
|
val newLine = regular("\n")
|
|
|
|
val newLine = regularTextSource("\n")
|
|
|
|
|
|
|
|
|
|
|
|
inline fun buildEntities(separator: TextSource? = null, init: EntitiesBuilderBody): TextSourcesList = EntitiesBuilder(separator).apply(init).build()
|
|
|
|
inline fun buildEntities(separator: TextSource? = null, init: EntitiesBuilderBody): TextSourcesList = EntitiesBuilder(separator).apply(init).build()
|
|
|
|
inline fun buildEntities(separator: String, init: EntitiesBuilderBody) = buildEntities(regular(separator), init)
|
|
|
|
inline fun buildEntities(separator: String, init: EntitiesBuilderBody) = buildEntities(regularTextSource(separator), init)
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* This builder can be used to provide building of [TextSource]s [List]
|
|
|
|
* This builder can be used to provide building of [TextSource]s [List]
|
|
|
@ -51,7 +51,7 @@ class EntitiesBuilder(
|
|
|
|
operator fun invoke(vararg source: TextSource) = addAll(source.toList())
|
|
|
|
operator fun invoke(vararg source: TextSource) = addAll(source.toList())
|
|
|
|
|
|
|
|
|
|
|
|
operator fun String.unaryPlus(): EntitiesBuilder {
|
|
|
|
operator fun String.unaryPlus(): EntitiesBuilder {
|
|
|
|
add(dev.inmo.tgbotapi.types.message.textsources.regular(this))
|
|
|
|
add(dev.inmo.tgbotapi.types.message.textsources.regularTextSource(this))
|
|
|
|
return this@EntitiesBuilder
|
|
|
|
return this@EntitiesBuilder
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -68,18 +68,18 @@ class EntitiesBuilder(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add bold using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.bold]
|
|
|
|
* Add bold using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.boldTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.bold(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.bold(parts))
|
|
|
|
inline fun EntitiesBuilder.bold(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.boldTextSource(parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.bold] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.bold] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.boldln(parts: TextSourcesList) = bold(parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.boldln(parts: TextSourcesList) = bold(parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add bold using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.bold].
|
|
|
|
* Add bold using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.boldTextSource].
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.bold(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.bold(
|
|
|
|
inline fun EntitiesBuilder.bold(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.boldTextSource(
|
|
|
|
buildEntities(separator, init)
|
|
|
|
buildEntities(separator, init)
|
|
|
|
))
|
|
|
|
))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -88,35 +88,35 @@ inline fun EntitiesBuilder.bold(noinline init: EntitiesBuilderBody) = add(dev.in
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.boldln(noinline init: EntitiesBuilderBody) = bold(init) + newLine
|
|
|
|
inline fun EntitiesBuilder.boldln(noinline init: EntitiesBuilderBody) = bold(init) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add bold using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.bold]
|
|
|
|
* Add bold using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.boldTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.bold(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.bold(*parts))
|
|
|
|
inline fun EntitiesBuilder.bold(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.boldTextSource(*parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.bold] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.bold] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.boldln(vararg parts: TextSource) = bold(*parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.boldln(vararg parts: TextSource) = bold(*parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add bold using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.bold]
|
|
|
|
* Add bold using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.boldTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.bold(text: String) = add(dev.inmo.tgbotapi.types.message.textsources.bold(text))
|
|
|
|
inline fun EntitiesBuilder.bold(text: String) = add(dev.inmo.tgbotapi.types.message.textsources.boldTextSource(text))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.bold] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.bold] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.boldln(text: String) = bold(text) + newLine
|
|
|
|
inline fun EntitiesBuilder.boldln(text: String) = bold(text) + newLine
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add blockquote using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.blockquote]
|
|
|
|
* Add blockquote using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.blockquoteTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.blockquote(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.blockquote(parts))
|
|
|
|
inline fun EntitiesBuilder.blockquote(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.blockquoteTextSource(parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.blockquote] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.blockquote] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.blockquoteln(parts: TextSourcesList) = blockquote(parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.blockquoteln(parts: TextSourcesList) = blockquote(parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add blockquote using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.blockquote].
|
|
|
|
* Add blockquote using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.blockquoteTextSource].
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.blockquote(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.blockquote(
|
|
|
|
inline fun EntitiesBuilder.blockquote(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.blockquoteTextSource(
|
|
|
|
buildEntities(separator, init)
|
|
|
|
buildEntities(separator, init)
|
|
|
|
))
|
|
|
|
))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -125,17 +125,17 @@ inline fun EntitiesBuilder.blockquote(noinline init: EntitiesBuilderBody) = add(
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.blockquoteln(noinline init: EntitiesBuilderBody) = blockquote(init) + newLine
|
|
|
|
inline fun EntitiesBuilder.blockquoteln(noinline init: EntitiesBuilderBody) = blockquote(init) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add blockquote using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.blockquote]
|
|
|
|
* Add blockquote using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.blockquoteTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.blockquote(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.blockquote(*parts))
|
|
|
|
inline fun EntitiesBuilder.blockquote(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.blockquoteTextSource(*parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.blockquote] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.blockquote] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.blockquoteln(vararg parts: TextSource) = blockquote(*parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.blockquoteln(vararg parts: TextSource) = blockquote(*parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add blockquote using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.blockquote]
|
|
|
|
* Add blockquote using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.blockquoteTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.blockquote(text: String) = add(dev.inmo.tgbotapi.types.message.textsources.blockquote(text))
|
|
|
|
inline fun EntitiesBuilder.blockquote(text: String) = add(dev.inmo.tgbotapi.types.message.textsources.blockquoteTextSource(text))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.blockquote] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.blockquote] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -143,18 +143,18 @@ inline fun EntitiesBuilder.blockquoteln(text: String) = blockquote(text) + newLi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add blockquote using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.blockquote]
|
|
|
|
* Add blockquote using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.blockquoteTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.expandableBlockquote(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.expandableBlockquote(parts))
|
|
|
|
inline fun EntitiesBuilder.expandableBlockquote(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.expandableBlockquoteTextSource(parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.expandableBlockquote] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.expandableBlockquote] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.expandableBlockquoteln(parts: TextSourcesList) = expandableBlockquote(parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.expandableBlockquoteln(parts: TextSourcesList) = expandableBlockquote(parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add expandableBlockquote using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.expandableBlockquote].
|
|
|
|
* Add expandableBlockquote using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.expandableBlockquoteTextSource].
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.expandableBlockquote(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.expandableBlockquote(
|
|
|
|
inline fun EntitiesBuilder.expandableBlockquote(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.expandableBlockquoteTextSource(
|
|
|
|
buildEntities(separator, init)
|
|
|
|
buildEntities(separator, init)
|
|
|
|
))
|
|
|
|
))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -163,35 +163,35 @@ inline fun EntitiesBuilder.expandableBlockquote(noinline init: EntitiesBuilderBo
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.expandableBlockquoteln(noinline init: EntitiesBuilderBody) = expandableBlockquote(init) + newLine
|
|
|
|
inline fun EntitiesBuilder.expandableBlockquoteln(noinline init: EntitiesBuilderBody) = expandableBlockquote(init) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add expandableBlockquote using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.expandableBlockquote]
|
|
|
|
* Add expandableBlockquote using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.expandableBlockquoteTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.expandableBlockquote(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.expandableBlockquote(*parts))
|
|
|
|
inline fun EntitiesBuilder.expandableBlockquote(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.expandableBlockquoteTextSource(*parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.expandableBlockquote] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.expandableBlockquote] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.expandableBlockquoteln(vararg parts: TextSource) = expandableBlockquote(*parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.expandableBlockquoteln(vararg parts: TextSource) = expandableBlockquote(*parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add expandableBlockquote using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.expandableBlockquote]
|
|
|
|
* Add expandableBlockquote using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.expandableBlockquoteTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.expandableBlockquote(text: String) = add(dev.inmo.tgbotapi.types.message.textsources.expandableBlockquote(text))
|
|
|
|
inline fun EntitiesBuilder.expandableBlockquote(text: String) = add(dev.inmo.tgbotapi.types.message.textsources.expandableBlockquoteTextSource(text))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.expandableBlockquote] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.expandableBlockquote] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.expandableBlockquoteln(text: String) = expandableBlockquote(text) + newLine
|
|
|
|
inline fun EntitiesBuilder.expandableBlockquoteln(text: String) = expandableBlockquote(text) + newLine
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add spoiler using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.spoiler]
|
|
|
|
* Add spoiler using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.spoilerTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.spoiler(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.spoiler(parts))
|
|
|
|
inline fun EntitiesBuilder.spoiler(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.spoilerTextSource(parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.spoiler] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.spoiler] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.spoilerln(parts: TextSourcesList) = spoiler(parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.spoilerln(parts: TextSourcesList) = spoiler(parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add spoiler using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.spoiler].
|
|
|
|
* Add spoiler using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.spoilerTextSource].
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.spoiler(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.spoiler(
|
|
|
|
inline fun EntitiesBuilder.spoiler(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.spoilerTextSource(
|
|
|
|
buildEntities(separator, init)
|
|
|
|
buildEntities(separator, init)
|
|
|
|
))
|
|
|
|
))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -200,17 +200,17 @@ inline fun EntitiesBuilder.spoiler(noinline init: EntitiesBuilderBody) = add(dev
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.spoilerln(noinline init: EntitiesBuilderBody) = spoiler(init) + newLine
|
|
|
|
inline fun EntitiesBuilder.spoilerln(noinline init: EntitiesBuilderBody) = spoiler(init) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add spoiler using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.spoiler]
|
|
|
|
* Add spoiler using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.spoilerTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.spoiler(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.spoiler(*parts))
|
|
|
|
inline fun EntitiesBuilder.spoiler(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.spoilerTextSource(*parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.spoiler] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.spoiler] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.spoilerln(vararg parts: TextSource) = spoiler(*parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.spoilerln(vararg parts: TextSource) = spoiler(*parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add spoiler using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.spoiler]
|
|
|
|
* Add spoiler using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.spoilerTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.spoiler(text: String) = add(dev.inmo.tgbotapi.types.message.textsources.spoiler(text))
|
|
|
|
inline fun EntitiesBuilder.spoiler(text: String) = add(dev.inmo.tgbotapi.types.message.textsources.spoilerTextSource(text))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.spoiler] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.spoiler] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -218,17 +218,17 @@ inline fun EntitiesBuilder.spoilerln(text: String) = spoiler(text) + newLine
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add botCommand using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.botCommand]
|
|
|
|
* Add botCommand using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.botCommandTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.botCommand(command: String) = add(dev.inmo.tgbotapi.types.message.textsources.botCommand(command))
|
|
|
|
inline fun EntitiesBuilder.botCommand(command: String) = add(dev.inmo.tgbotapi.types.message.textsources.botCommandTextSource(command))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.botCommand] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.botCommand] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.botCommandln(command: String) = botCommand(command) + newLine
|
|
|
|
inline fun EntitiesBuilder.botCommandln(command: String) = botCommand(command) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add botCommand using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.botCommand]
|
|
|
|
* Add botCommand using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.botCommandTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.botCommand(botCommand: BotCommand) = add(dev.inmo.tgbotapi.types.message.textsources.botCommand(botCommand))
|
|
|
|
inline fun EntitiesBuilder.botCommand(botCommand: BotCommand) = add(dev.inmo.tgbotapi.types.message.textsources.botCommandTextSource(botCommand))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.botCommand] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.botCommand] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -237,18 +237,18 @@ inline fun EntitiesBuilder.botCommandln(botCommand: BotCommand) = botCommand(bot
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add cashTag using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.cashTag]
|
|
|
|
* Add cashTag using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.cashTagTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.cashTag(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.cashTag(parts))
|
|
|
|
inline fun EntitiesBuilder.cashTag(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.cashTagTextSource(parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.cashTag] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.cashTag] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.cashTagln(parts: TextSourcesList) = cashTag(parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.cashTagln(parts: TextSourcesList) = cashTag(parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add cashTag using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.cashTag].
|
|
|
|
* Add cashTag using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.cashTagTextSource].
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.cashTag(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.cashTag(
|
|
|
|
inline fun EntitiesBuilder.cashTag(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.cashTagTextSource(
|
|
|
|
buildEntities(separator, init)
|
|
|
|
buildEntities(separator, init)
|
|
|
|
))
|
|
|
|
))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -257,17 +257,17 @@ inline fun EntitiesBuilder.cashTag(noinline init: EntitiesBuilderBody) = add(dev
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.cashTagln(noinline init: EntitiesBuilderBody) = cashTag(init) + newLine
|
|
|
|
inline fun EntitiesBuilder.cashTagln(noinline init: EntitiesBuilderBody) = cashTag(init) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add cashTag using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.cashTag]
|
|
|
|
* Add cashTag using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.cashTagTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.cashTag(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.cashTag(*parts))
|
|
|
|
inline fun EntitiesBuilder.cashTag(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.cashTagTextSource(*parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.cashTag] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.cashTag] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.cashTagln(vararg parts: TextSource) = cashTag(*parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.cashTagln(vararg parts: TextSource) = cashTag(*parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add cashTag using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.cashTag]
|
|
|
|
* Add cashTag using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.cashTagTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.cashTag(text: String) = add(dev.inmo.tgbotapi.types.message.textsources.cashTag(text))
|
|
|
|
inline fun EntitiesBuilder.cashTag(text: String) = add(dev.inmo.tgbotapi.types.message.textsources.cashTagTextSource(text))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.cashTag] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.cashTag] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -275,9 +275,9 @@ inline fun EntitiesBuilder.cashTagln(text: String) = cashTag(text) + newLine
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add code using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.code]
|
|
|
|
* Add code using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.codeTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.code(code: String) = add(dev.inmo.tgbotapi.types.message.textsources.code(code))
|
|
|
|
inline fun EntitiesBuilder.code(code: String) = add(dev.inmo.tgbotapi.types.message.textsources.codeTextSource(code))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.code] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.code] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -285,18 +285,18 @@ inline fun EntitiesBuilder.codeln(code: String) = code(code) + newLine
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add email using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.email]
|
|
|
|
* Add email using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.emailTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.email(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.email(parts))
|
|
|
|
inline fun EntitiesBuilder.email(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.emailTextSource(parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.email] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.email] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.emailln(parts: TextSourcesList) = email(parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.emailln(parts: TextSourcesList) = email(parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add email using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.email].
|
|
|
|
* Add email using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.emailTextSource].
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.email(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.email(
|
|
|
|
inline fun EntitiesBuilder.email(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.emailTextSource(
|
|
|
|
buildEntities(separator, init)
|
|
|
|
buildEntities(separator, init)
|
|
|
|
))
|
|
|
|
))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -305,17 +305,17 @@ inline fun EntitiesBuilder.email(noinline init: EntitiesBuilderBody) = add(dev.i
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.emailln(noinline init: EntitiesBuilderBody) = email(init) + newLine
|
|
|
|
inline fun EntitiesBuilder.emailln(noinline init: EntitiesBuilderBody) = email(init) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add email using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.email]
|
|
|
|
* Add email using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.emailTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.email(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.email(*parts))
|
|
|
|
inline fun EntitiesBuilder.email(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.emailTextSource(*parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.email] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.email] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.emailln(vararg parts: TextSource) = email(*parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.emailln(vararg parts: TextSource) = email(*parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add email using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.email]
|
|
|
|
* Add email using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.emailTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.email(emailAddress: String) = add(dev.inmo.tgbotapi.types.message.textsources.email(emailAddress))
|
|
|
|
inline fun EntitiesBuilder.email(emailAddress: String) = add(dev.inmo.tgbotapi.types.message.textsources.emailTextSource(emailAddress))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.email] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.email] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -323,18 +323,18 @@ inline fun EntitiesBuilder.emailln(emailAddress: String) = email(emailAddress) +
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add hashtag using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.hashtag]
|
|
|
|
* Add hashtag using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.hashtagTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.hashtag(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.hashtag(parts))
|
|
|
|
inline fun EntitiesBuilder.hashtag(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.hashtagTextSource(parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.hashtag] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.hashtag] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.hashtagln(parts: TextSourcesList) = hashtag(parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.hashtagln(parts: TextSourcesList) = hashtag(parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add hashtag using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.hashtag].
|
|
|
|
* Add hashtag using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.hashtagTextSource].
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.hashtag(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.hashtag(
|
|
|
|
inline fun EntitiesBuilder.hashtag(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.hashtagTextSource(
|
|
|
|
buildEntities(separator, init)
|
|
|
|
buildEntities(separator, init)
|
|
|
|
))
|
|
|
|
))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -343,17 +343,17 @@ inline fun EntitiesBuilder.hashtag(noinline init: EntitiesBuilderBody) = add(dev
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.hashtagln(noinline init: EntitiesBuilderBody) = hashtag(init) + newLine
|
|
|
|
inline fun EntitiesBuilder.hashtagln(noinline init: EntitiesBuilderBody) = hashtag(init) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add hashtag using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.hashtag]
|
|
|
|
* Add hashtag using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.hashtagTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.hashtag(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.hashtag(*parts))
|
|
|
|
inline fun EntitiesBuilder.hashtag(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.hashtagTextSource(*parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.hashtag] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.hashtag] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.hashtagln(vararg parts: TextSource) = hashtag(*parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.hashtagln(vararg parts: TextSource) = hashtag(*parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add hashtag using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.hashtag]
|
|
|
|
* Add hashtag using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.hashtagTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.hashtag(hashtag: String) = add(dev.inmo.tgbotapi.types.message.textsources.hashtag(hashtag))
|
|
|
|
inline fun EntitiesBuilder.hashtag(hashtag: String) = add(dev.inmo.tgbotapi.types.message.textsources.hashtagTextSource(hashtag))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.hashtag] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.hashtag] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -361,18 +361,18 @@ inline fun EntitiesBuilder.hashtagln(hashtag: String) = hashtag(hashtag) + newLi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add italic using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.italic]
|
|
|
|
* Add italic using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.italicTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.italic(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.italic(parts))
|
|
|
|
inline fun EntitiesBuilder.italic(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.italicTextSource(parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.italic] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.italic] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.italicln(parts: TextSourcesList) = italic(parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.italicln(parts: TextSourcesList) = italic(parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add italic using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.italic].
|
|
|
|
* Add italic using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.italicTextSource].
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.italic(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.italic(
|
|
|
|
inline fun EntitiesBuilder.italic(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.italicTextSource(
|
|
|
|
buildEntities(separator, init)
|
|
|
|
buildEntities(separator, init)
|
|
|
|
))
|
|
|
|
))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -381,17 +381,17 @@ inline fun EntitiesBuilder.italic(noinline init: EntitiesBuilderBody) = add(dev.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.italicln(noinline init: EntitiesBuilderBody) = italic(init) + newLine
|
|
|
|
inline fun EntitiesBuilder.italicln(noinline init: EntitiesBuilderBody) = italic(init) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add italic using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.italic]
|
|
|
|
* Add italic using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.italicTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.italic(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.italic(*parts))
|
|
|
|
inline fun EntitiesBuilder.italic(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.italicTextSource(*parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.italic] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.italic] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.italicln(vararg parts: TextSource) = italic(*parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.italicln(vararg parts: TextSource) = italic(*parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add italic using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.italic]
|
|
|
|
* Add italic using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.italicTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.italic(text: String) = add(dev.inmo.tgbotapi.types.message.textsources.italic(text))
|
|
|
|
inline fun EntitiesBuilder.italic(text: String) = add(dev.inmo.tgbotapi.types.message.textsources.italicTextSource(text))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.italic] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.italic] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -399,18 +399,18 @@ inline fun EntitiesBuilder.italicln(text: String) = italic(text) + newLine
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add mention using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.mention]
|
|
|
|
* Add mention using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.mentionTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.mention(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.mention(parts))
|
|
|
|
inline fun EntitiesBuilder.mention(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.mentionTextSource(parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.mentionln(parts: TextSourcesList) = mention(parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.mentionln(parts: TextSourcesList) = mention(parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add mention using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.mention].
|
|
|
|
* Add mention using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.mentionTextSource].
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.mention(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.mention(
|
|
|
|
inline fun EntitiesBuilder.mention(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.mentionTextSource(
|
|
|
|
buildEntities(separator, init)
|
|
|
|
buildEntities(separator, init)
|
|
|
|
))
|
|
|
|
))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -419,25 +419,25 @@ inline fun EntitiesBuilder.mention(noinline init: EntitiesBuilderBody) = add(dev
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.mentionln(noinline init: EntitiesBuilderBody) = mention(init) + newLine
|
|
|
|
inline fun EntitiesBuilder.mentionln(noinline init: EntitiesBuilderBody) = mention(init) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add mention using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.mention]
|
|
|
|
* Add mention using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.mentionTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.mention(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.mention(*parts))
|
|
|
|
inline fun EntitiesBuilder.mention(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.mentionTextSource(*parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.mentionln(vararg parts: TextSource) = mention(*parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.mentionln(vararg parts: TextSource) = mention(*parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add mention using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.mention]
|
|
|
|
* Add mention using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.mentionTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.mention(whoToMention: String) = add(dev.inmo.tgbotapi.types.message.textsources.mention(whoToMention))
|
|
|
|
inline fun EntitiesBuilder.mention(whoToMention: String) = add(dev.inmo.tgbotapi.types.message.textsources.mentionTextSource(whoToMention))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.mentionln(whoToMention: String) = mention(whoToMention) + newLine
|
|
|
|
inline fun EntitiesBuilder.mentionln(whoToMention: String) = mention(whoToMention) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add mention using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.mention]
|
|
|
|
* Add mention using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.mentionTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.mention(parts: TextSourcesList, user: User) = add(dev.inmo.tgbotapi.types.message.textsources.mention(parts, user))
|
|
|
|
inline fun EntitiesBuilder.mention(parts: TextSourcesList, user: User) = add(dev.inmo.tgbotapi.types.message.textsources.mentionTextSource(parts, user))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -445,24 +445,24 @@ inline fun EntitiesBuilder.mentionln(parts: TextSourcesList, user: User) = menti
|
|
|
|
inline fun EntitiesBuilder.mention(
|
|
|
|
inline fun EntitiesBuilder.mention(
|
|
|
|
user: User,
|
|
|
|
user: User,
|
|
|
|
vararg parts: TextSource
|
|
|
|
vararg parts: TextSource
|
|
|
|
) = add(dev.inmo.tgbotapi.types.message.textsources.mention(user, *parts))
|
|
|
|
) = add(dev.inmo.tgbotapi.types.message.textsources.mentionTextSource(user, *parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.mentionln(user: User, vararg parts: TextSource) = mention(user, *parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.mentionln(user: User, vararg parts: TextSource) = mention(user, *parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add mention using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.mention]
|
|
|
|
* Add mention using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.mentionTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.mention(text: String, user: User) = add(dev.inmo.tgbotapi.types.message.textsources.mention(text, user))
|
|
|
|
inline fun EntitiesBuilder.mention(text: String, user: User) = add(dev.inmo.tgbotapi.types.message.textsources.mentionTextSource(text, user))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.mentionln(text: String, user: User) = mention(text, user) + newLine
|
|
|
|
inline fun EntitiesBuilder.mentionln(text: String, user: User) = mention(text, user) + newLine
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add mention using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.mention]
|
|
|
|
* Add mention using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.mentionTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.mention(parts: TextSourcesList, userId: UserId) = add(dev.inmo.tgbotapi.types.message.textsources.mention(parts, userId))
|
|
|
|
inline fun EntitiesBuilder.mention(parts: TextSourcesList, userId: UserId) = add(dev.inmo.tgbotapi.types.message.textsources.mentionTextSource(parts, userId))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -476,9 +476,9 @@ inline fun EntitiesBuilder.mention(
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.mentionln(userId: UserId, vararg parts: TextSource) = mention(userId, *parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.mentionln(userId: UserId, vararg parts: TextSource) = mention(userId, *parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add mention using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.mention]
|
|
|
|
* Add mention using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.mentionTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.mention(text: String, userId: UserId) = add(dev.inmo.tgbotapi.types.message.textsources.mention(text, userId))
|
|
|
|
inline fun EntitiesBuilder.mention(text: String, userId: UserId) = add(dev.inmo.tgbotapi.types.message.textsources.mentionTextSource(text, userId))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -486,18 +486,18 @@ inline fun EntitiesBuilder.mentionln(text: String, userId: UserId) = mention(tex
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add phone using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.phone]
|
|
|
|
* Add phone using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.phoneTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.phone(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.phone(parts))
|
|
|
|
inline fun EntitiesBuilder.phone(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.phoneTextSource(parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.phone] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.phone] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.phoneln(parts: TextSourcesList) = phone(parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.phoneln(parts: TextSourcesList) = phone(parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add phone using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.phone].
|
|
|
|
* Add phone using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.phoneTextSource].
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.phone(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.phone(
|
|
|
|
inline fun EntitiesBuilder.phone(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.phoneTextSource(
|
|
|
|
buildEntities(separator, init)
|
|
|
|
buildEntities(separator, init)
|
|
|
|
))
|
|
|
|
))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -506,17 +506,17 @@ inline fun EntitiesBuilder.phone(noinline init: EntitiesBuilderBody) = add(dev.i
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.phoneln(noinline init: EntitiesBuilderBody) = phone(init) + newLine
|
|
|
|
inline fun EntitiesBuilder.phoneln(noinline init: EntitiesBuilderBody) = phone(init) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add phone using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.phone]
|
|
|
|
* Add phone using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.phoneTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.phone(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.phone(*parts))
|
|
|
|
inline fun EntitiesBuilder.phone(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.phoneTextSource(*parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.phone] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.phone] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.phoneln(vararg parts: TextSource) = phone(*parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.phoneln(vararg parts: TextSource) = phone(*parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add phone using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.phone]
|
|
|
|
* Add phone using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.phoneTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.phone(number: String) = add(dev.inmo.tgbotapi.types.message.textsources.phone(number))
|
|
|
|
inline fun EntitiesBuilder.phone(number: String) = add(dev.inmo.tgbotapi.types.message.textsources.phoneTextSource(number))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.phone] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.phone] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -524,24 +524,24 @@ inline fun EntitiesBuilder.phoneln(number: String) = phone(number) + newLine
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add pre using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.pre]
|
|
|
|
* Add pre using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.preTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.pre(code: String, language: String?) = add(dev.inmo.tgbotapi.types.message.textsources.pre(code, language))
|
|
|
|
inline fun EntitiesBuilder.pre(code: String, language: String?) = add(dev.inmo.tgbotapi.types.message.textsources.preTextSource(code, language))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.pre] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.pre] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.preln(code: String, language: String?) = pre(code, language) + newLine
|
|
|
|
inline fun EntitiesBuilder.preln(code: String, language: String?) = pre(code, language) + newLine
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Will add simple [dev.inmo.tgbotapi.types.message.textsources.regular] [TextSource]
|
|
|
|
* Will add simple [dev.inmo.tgbotapi.types.message.textsources.regularTextSource] [TextSource]
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @see RegularTextSource
|
|
|
|
* @see RegularTextSource
|
|
|
|
* @see dev.inmo.tgbotapi.extensions.utils.formatting.regularln
|
|
|
|
* @see dev.inmo.tgbotapi.extensions.utils.formatting.regularln
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.regular(text: String) =
|
|
|
|
inline fun EntitiesBuilder.regular(text: String) =
|
|
|
|
add(dev.inmo.tgbotapi.types.message.textsources.regular(text))
|
|
|
|
add(dev.inmo.tgbotapi.types.message.textsources.regularTextSource(text))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Will add simple [dev.inmo.tgbotapi.types.message.textsources.regular] [TextSource] and "\n" at the end
|
|
|
|
* Will add simple [dev.inmo.tgbotapi.types.message.textsources.regularTextSource] [TextSource] and "\n" at the end
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @see RegularTextSource
|
|
|
|
* @see RegularTextSource
|
|
|
|
* @see dev.inmo.tgbotapi.extensions.utils.formatting.regular
|
|
|
|
* @see dev.inmo.tgbotapi.extensions.utils.formatting.regular
|
|
|
@ -588,17 +588,17 @@ inline fun EntitiesBuilder.strikethroughln(text: String) = strikethrough(text) +
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add link using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.link]
|
|
|
|
* Add link using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.linkTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.link(text: String, url: String) = add(dev.inmo.tgbotapi.types.message.textsources.link(text, url))
|
|
|
|
inline fun EntitiesBuilder.link(text: String, url: String) = add(dev.inmo.tgbotapi.types.message.textsources.linkTextSource(text, url))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.link] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.link] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.linkln(text: String, url: String) = link(text, url) + newLine
|
|
|
|
inline fun EntitiesBuilder.linkln(text: String, url: String) = link(text, url) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add link using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.link]
|
|
|
|
* Add link using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.linkTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.link(url: String) = add(dev.inmo.tgbotapi.types.message.textsources.link(url))
|
|
|
|
inline fun EntitiesBuilder.link(url: String) = add(dev.inmo.tgbotapi.types.message.textsources.linkTextSource(url))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.link] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.link] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -606,18 +606,18 @@ inline fun EntitiesBuilder.linkln(url: String) = link(url) + newLine
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add underline using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.underline]
|
|
|
|
* Add underline using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.underlineTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.underline(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.underline(parts))
|
|
|
|
inline fun EntitiesBuilder.underline(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.underlineTextSource(parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.underline] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.underline] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.underlineln(parts: TextSourcesList) = underline(parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.underlineln(parts: TextSourcesList) = underline(parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add underline using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.underline].
|
|
|
|
* Add underline using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.underlineTextSource].
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.underline(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.underline(
|
|
|
|
inline fun EntitiesBuilder.underline(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.underlineTextSource(
|
|
|
|
buildEntities(separator, init)
|
|
|
|
buildEntities(separator, init)
|
|
|
|
))
|
|
|
|
))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -626,17 +626,17 @@ inline fun EntitiesBuilder.underline(noinline init: EntitiesBuilderBody) = add(d
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.underlineln(noinline init: EntitiesBuilderBody) = underline(init) + newLine
|
|
|
|
inline fun EntitiesBuilder.underlineln(noinline init: EntitiesBuilderBody) = underline(init) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add underline using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.underline]
|
|
|
|
* Add underline using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.underlineTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.underline(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.underline(*parts))
|
|
|
|
inline fun EntitiesBuilder.underline(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.underlineTextSource(*parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.underline] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.underline] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.underlineln(vararg parts: TextSource) = underline(*parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.underlineln(vararg parts: TextSource) = underline(*parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add underline using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.underline]
|
|
|
|
* Add underline using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.underlineTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.underline(text: String) = add(dev.inmo.tgbotapi.types.message.textsources.underline(text))
|
|
|
|
inline fun EntitiesBuilder.underline(text: String) = add(dev.inmo.tgbotapi.types.message.textsources.underlineTextSource(text))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.underline] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.underline] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -644,35 +644,35 @@ inline fun EntitiesBuilder.underlineln(text: String) = underline(text) + newLine
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add customEmoji using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.customEmoji]
|
|
|
|
* Add customEmoji using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.customEmojiTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.customEmoji(customEmojiId: CustomEmojiId, parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.customEmoji(customEmojiId, parts))
|
|
|
|
inline fun EntitiesBuilder.customEmoji(customEmojiId: CustomEmojiId, parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.customEmojiTextSource(customEmojiId, parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.customEmoji] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.customEmoji] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.customEmojiln(customEmojiId: CustomEmojiId, parts: TextSourcesList) = customEmoji(customEmojiId, parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.customEmojiln(customEmojiId: CustomEmojiId, parts: TextSourcesList) = customEmoji(customEmojiId, parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add customEmoji using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.customEmoji].
|
|
|
|
* Add customEmoji using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.customEmojiTextSource].
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.customEmoji(customEmojiId: CustomEmojiId, noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.customEmoji(customEmojiId, buildEntities(separator, init)))
|
|
|
|
inline fun EntitiesBuilder.customEmoji(customEmojiId: CustomEmojiId, noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.customEmojiTextSource(customEmojiId, buildEntities(separator, init)))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.customEmoji] with new line at the end.
|
|
|
|
* Version of [EntitiesBuilder.customEmoji] with new line at the end.
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
* Will reuse separator config from [buildEntities]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.customEmojiln(customEmojiId: CustomEmojiId, noinline init: EntitiesBuilderBody) = customEmoji(customEmojiId, init) + newLine
|
|
|
|
inline fun EntitiesBuilder.customEmojiln(customEmojiId: CustomEmojiId, noinline init: EntitiesBuilderBody) = customEmoji(customEmojiId, init) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add customEmoji using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.customEmoji]
|
|
|
|
* Add customEmoji using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.customEmojiTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.customEmoji(customEmojiId: CustomEmojiId, vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.customEmoji(customEmojiId, *parts))
|
|
|
|
inline fun EntitiesBuilder.customEmoji(customEmojiId: CustomEmojiId, vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.customEmojiTextSource(customEmojiId, *parts))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.customEmoji] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.customEmoji] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.customEmojiln(customEmojiId: CustomEmojiId, vararg parts: TextSource) = customEmoji(customEmojiId, *parts) + newLine
|
|
|
|
inline fun EntitiesBuilder.customEmojiln(customEmojiId: CustomEmojiId, vararg parts: TextSource) = customEmoji(customEmojiId, *parts) + newLine
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add customEmoji using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.customEmoji]
|
|
|
|
* Add customEmoji using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.customEmojiTextSource]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline fun EntitiesBuilder.customEmoji(customEmojiId: CustomEmojiId, text: String) = add(dev.inmo.tgbotapi.types.message.textsources.customEmoji(customEmojiId, text))
|
|
|
|
inline fun EntitiesBuilder.customEmoji(customEmojiId: CustomEmojiId, text: String) = add(dev.inmo.tgbotapi.types.message.textsources.customEmojiTextSource(customEmojiId, text))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Version of [EntitiesBuilder.customEmoji] with new line at the end
|
|
|
|
* Version of [EntitiesBuilder.customEmoji] with new line at the end
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|