mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
improve deprecation messages in old entities builder
This commit is contained in:
parent
a4a82f69c6
commit
0aa58bd9f6
@ -16,9 +16,9 @@ typealias EntitiesBuilderBody = EntitiesBuilder.() -> Unit
|
|||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("newLine", "$CoreModulePackage.newLine"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("newLine", "$CoreModulePackage.newLine"))
|
||||||
val newLine = regular("\n")
|
val newLine = regular("\n")
|
||||||
|
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("buildEntities", "$CoreModulePackage.buildEntities"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("buildEntities(separator, init)", "$CoreModulePackage.buildEntities"))
|
||||||
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()
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("buildEntities", "$CoreModulePackage.buildEntities"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("buildEntities(separator, init)", "$CoreModulePackage.buildEntities"))
|
||||||
inline fun buildEntities(separator: String, init: EntitiesBuilderBody) = buildEntities(regular(separator), init)
|
inline fun buildEntities(separator: String, init: EntitiesBuilderBody) = buildEntities(regular(separator), init)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -27,68 +27,23 @@ inline fun buildEntities(separator: String, init: EntitiesBuilderBody) = buildEn
|
|||||||
* @see buildEntities
|
* @see buildEntities
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("EntitiesBuilder", "$CoreModulePackage.EntitiesBuilder"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("EntitiesBuilder", "$CoreModulePackage.EntitiesBuilder"))
|
||||||
class EntitiesBuilder @RiskFeature constructor(
|
typealias EntitiesBuilder = dev.inmo.tgbotapi.utils.EntitiesBuilder
|
||||||
val separator: TextSource? = null
|
|
||||||
) {
|
|
||||||
private val entitiesList: MutableTextSourcesList = mutableListOf()
|
|
||||||
|
|
||||||
/**
|
|
||||||
* It is not safe field which contains potentially changeable [List]
|
|
||||||
*/
|
|
||||||
val entities: TextSourcesList
|
|
||||||
get() = entitiesList
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return New immutable list which will be deattached from this builder
|
|
||||||
*/
|
|
||||||
fun build(): TextSourcesList = if (separator != null) entities.joinTo(separator) else entities.toList()
|
|
||||||
|
|
||||||
fun add(source: TextSource): EntitiesBuilder {
|
|
||||||
entitiesList.add(source)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
fun addAll(sources: Iterable<TextSource>): EntitiesBuilder {
|
|
||||||
entitiesList.addAll(sources)
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
operator fun TextSource.unaryPlus() = add(this)
|
|
||||||
operator fun TextSourcesList.unaryPlus() = addAll(this)
|
|
||||||
operator fun invoke(vararg source: TextSource) = addAll(source.toList())
|
|
||||||
|
|
||||||
operator fun String.unaryPlus(): EntitiesBuilder {
|
|
||||||
add(dev.inmo.tgbotapi.types.message.textsources.regular(this))
|
|
||||||
return this@EntitiesBuilder
|
|
||||||
}
|
|
||||||
|
|
||||||
operator fun plus(text: String) = text.unaryPlus()
|
|
||||||
operator fun plus(source: TextSource) = add(source)
|
|
||||||
operator fun plus(sources: Iterable<TextSource>) = addAll(sources)
|
|
||||||
|
|
||||||
operator fun plus(other: EntitiesBuilder) = if (other == this) {
|
|
||||||
// do nothing; assume user is using something like regular("Hello, ") + bold("world") in buildEntities
|
|
||||||
this
|
|
||||||
} else {
|
|
||||||
addAll(other.entitiesList)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.bold]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("bold", "$CoreModulePackage.bold"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("bold(parts)", "$CoreModulePackage.bold"))
|
||||||
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.bold(parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.bold] with new line at the end
|
* Version of [EntitiesBuilder.bold] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("boldln", "$CoreModulePackage.boldln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("boldln(parts)", "$CoreModulePackage.boldln"))
|
||||||
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.bold].
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("bold", "$CoreModulePackage.bold"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("bold(init)", "$CoreModulePackage.bold"))
|
||||||
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.bold(
|
||||||
buildEntities(separator, init)
|
buildEntities(separator, init)
|
||||||
))
|
))
|
||||||
@ -96,44 +51,44 @@ inline fun EntitiesBuilder.bold(noinline init: EntitiesBuilderBody) = add(dev.in
|
|||||||
* Version of [EntitiesBuilder.bold] with new line at the end.
|
* Version of [EntitiesBuilder.bold] with new line at the end.
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("boldln", "$CoreModulePackage.boldln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("boldln(init)", "$CoreModulePackage.boldln"))
|
||||||
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.bold]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("bold", "$CoreModulePackage.bold"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("bold(parts)", "$CoreModulePackage.bold"))
|
||||||
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.bold(*parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.bold] with new line at the end
|
* Version of [EntitiesBuilder.bold] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("boldln", "$CoreModulePackage.boldln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("boldln(parts)", "$CoreModulePackage.boldln"))
|
||||||
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.bold]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("bold", "$CoreModulePackage.bold"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("bold(text)", "$CoreModulePackage.bold"))
|
||||||
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.bold(text))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.bold] with new line at the end
|
* Version of [EntitiesBuilder.bold] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("boldln", "$CoreModulePackage.boldln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("boldln(text)", "$CoreModulePackage.boldln"))
|
||||||
inline fun EntitiesBuilder.boldln(text: String) = bold(text) + newLine
|
inline fun EntitiesBuilder.boldln(text: String) = bold(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.spoiler]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("spoiler", "$CoreModulePackage.spoiler"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("spoiler(parts)", "$CoreModulePackage.spoiler"))
|
||||||
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.spoiler(parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.spoiler] with new line at the end
|
* Version of [EntitiesBuilder.spoiler] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("spoilerln", "$CoreModulePackage.spoilerln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("spoilerln(parts)", "$CoreModulePackage.spoilerln"))
|
||||||
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.spoiler].
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("spoiler", "$CoreModulePackage.spoiler"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("spoiler(init)", "$CoreModulePackage.spoiler"))
|
||||||
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.spoiler(
|
||||||
buildEntities(separator, init)
|
buildEntities(separator, init)
|
||||||
))
|
))
|
||||||
@ -141,57 +96,57 @@ inline fun EntitiesBuilder.spoiler(noinline init: EntitiesBuilderBody) = add(dev
|
|||||||
* Version of [EntitiesBuilder.spoiler] with new line at the end.
|
* Version of [EntitiesBuilder.spoiler] with new line at the end.
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("spoilerln", "$CoreModulePackage.spoilerln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("spoilerln(init)", "$CoreModulePackage.spoilerln"))
|
||||||
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.spoiler]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("spoiler", "$CoreModulePackage.spoiler"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("spoiler(parts)", "$CoreModulePackage.spoiler"))
|
||||||
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.spoiler(*parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.spoiler] with new line at the end
|
* Version of [EntitiesBuilder.spoiler] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("spoilerln", "$CoreModulePackage.spoilerln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("spoilerln(parts)", "$CoreModulePackage.spoilerln"))
|
||||||
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.spoiler]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("spoiler", "$CoreModulePackage.spoiler"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("spoiler(text)", "$CoreModulePackage.spoiler"))
|
||||||
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.spoiler(text))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.spoiler] with new line at the end
|
* Version of [EntitiesBuilder.spoiler] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("spoilerln", "$CoreModulePackage.spoilerln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("spoilerln(text)", "$CoreModulePackage.spoilerln"))
|
||||||
inline fun EntitiesBuilder.spoilerln(text: String) = spoiler(text) + newLine
|
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.botCommand]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("botCommand", "$CoreModulePackage.botCommand"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("botCommand(command)", "$CoreModulePackage.botCommand"))
|
||||||
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.botCommand(command))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.botCommand] with new line at the end
|
* Version of [EntitiesBuilder.botCommand] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("botCommandln", "$CoreModulePackage.botCommandln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("botCommandln(command)", "$CoreModulePackage.botCommandln"))
|
||||||
inline fun EntitiesBuilder.botCommandln(command: String) = botCommand(command) + newLine
|
inline fun EntitiesBuilder.botCommandln(command: String) = botCommand(command) + 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.cashTag]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("cashTag", "$CoreModulePackage.cashTag"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("cashTag(parts)", "$CoreModulePackage.cashTag"))
|
||||||
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.cashTag(parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.cashTag] with new line at the end
|
* Version of [EntitiesBuilder.cashTag] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("cashTagln", "$CoreModulePackage.cashTagln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("cashTagln(parts)", "$CoreModulePackage.cashTagln"))
|
||||||
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.cashTag].
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("cashTag", "$CoreModulePackage.cashTag"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("cashTag(init)", "$CoreModulePackage.cashTag"))
|
||||||
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.cashTag(
|
||||||
buildEntities(separator, init)
|
buildEntities(separator, init)
|
||||||
))
|
))
|
||||||
@ -199,57 +154,57 @@ inline fun EntitiesBuilder.cashTag(noinline init: EntitiesBuilderBody) = add(dev
|
|||||||
* Version of [EntitiesBuilder.cashTag] with new line at the end.
|
* Version of [EntitiesBuilder.cashTag] with new line at the end.
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("cashTagln", "$CoreModulePackage.cashTagln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("cashTagln(init)", "$CoreModulePackage.cashTagln"))
|
||||||
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.cashTag]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("cashTag", "$CoreModulePackage.cashTag"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("cashTag(parts)", "$CoreModulePackage.cashTag"))
|
||||||
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.cashTag(*parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.cashTag] with new line at the end
|
* Version of [EntitiesBuilder.cashTag] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("cashTagln", "$CoreModulePackage.cashTagln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("cashTagln(parts)", "$CoreModulePackage.cashTagln"))
|
||||||
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.cashTag]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("cashTag", "$CoreModulePackage.cashTag"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("cashTag(text)", "$CoreModulePackage.cashTag"))
|
||||||
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.cashTag(text))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.cashTag] with new line at the end
|
* Version of [EntitiesBuilder.cashTag] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("cashTagln", "$CoreModulePackage.cashTagln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("cashTagln(text)", "$CoreModulePackage.cashTagln"))
|
||||||
inline fun EntitiesBuilder.cashTagln(text: String) = cashTag(text) + newLine
|
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.code]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("code", "$CoreModulePackage.code"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("code(code)", "$CoreModulePackage.code"))
|
||||||
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.code(code))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.code] with new line at the end
|
* Version of [EntitiesBuilder.code] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("codeln", "$CoreModulePackage.codeln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("codeln(code)", "$CoreModulePackage.codeln"))
|
||||||
inline fun EntitiesBuilder.codeln(code: String) = code(code) + newLine
|
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.email]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("email", "$CoreModulePackage.email"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("email(parts)", "$CoreModulePackage.email"))
|
||||||
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.email(parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.email] with new line at the end
|
* Version of [EntitiesBuilder.email] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("emailln", "$CoreModulePackage.emailln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("emailln(parts)", "$CoreModulePackage.emailln"))
|
||||||
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.email].
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("email", "$CoreModulePackage.email"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("email(init)", "$CoreModulePackage.email"))
|
||||||
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.email(
|
||||||
buildEntities(separator, init)
|
buildEntities(separator, init)
|
||||||
))
|
))
|
||||||
@ -257,45 +212,45 @@ inline fun EntitiesBuilder.email(noinline init: EntitiesBuilderBody) = add(dev.i
|
|||||||
* Version of [EntitiesBuilder.email] with new line at the end.
|
* Version of [EntitiesBuilder.email] with new line at the end.
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("emailln", "$CoreModulePackage.emailln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("emailln(init)", "$CoreModulePackage.emailln"))
|
||||||
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.email]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("email", "$CoreModulePackage.email"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("email(parts)", "$CoreModulePackage.email"))
|
||||||
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.email(*parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.email] with new line at the end
|
* Version of [EntitiesBuilder.email] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("emailln", "$CoreModulePackage.emailln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("emailln(parts)", "$CoreModulePackage.emailln"))
|
||||||
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.email]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("email", "$CoreModulePackage.email"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("email(emailAddress)", "$CoreModulePackage.email"))
|
||||||
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.email(emailAddress))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.email] with new line at the end
|
* Version of [EntitiesBuilder.email] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("emailln", "$CoreModulePackage.emailln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("emailln(emailAddress)", "$CoreModulePackage.emailln"))
|
||||||
inline fun EntitiesBuilder.emailln(emailAddress: String) = email(emailAddress) + newLine
|
inline fun EntitiesBuilder.emailln(emailAddress: String) = email(emailAddress) + 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.hashtag]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("hashtag", "$CoreModulePackage.hashtag"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("hashtag(parts)", "$CoreModulePackage.hashtag"))
|
||||||
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.hashtag(parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.hashtag] with new line at the end
|
* Version of [EntitiesBuilder.hashtag] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("hashtagln", "$CoreModulePackage.hashtagln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("hashtagln(parts)", "$CoreModulePackage.hashtagln"))
|
||||||
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.hashtag].
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("hashtag", "$CoreModulePackage.hashtag"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("hashtag(init)", "$CoreModulePackage.hashtag"))
|
||||||
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.hashtag(
|
||||||
buildEntities(separator, init)
|
buildEntities(separator, init)
|
||||||
))
|
))
|
||||||
@ -303,45 +258,45 @@ inline fun EntitiesBuilder.hashtag(noinline init: EntitiesBuilderBody) = add(dev
|
|||||||
* Version of [EntitiesBuilder.hashtag] with new line at the end.
|
* Version of [EntitiesBuilder.hashtag] with new line at the end.
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("hashtagln", "$CoreModulePackage.hashtagln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("hashtagln(init)", "$CoreModulePackage.hashtagln"))
|
||||||
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.hashtag]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("hashtag", "$CoreModulePackage.hashtag"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("hashtag(parts)", "$CoreModulePackage.hashtag"))
|
||||||
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.hashtag(*parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.hashtag] with new line at the end
|
* Version of [EntitiesBuilder.hashtag] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("hashtagln", "$CoreModulePackage.hashtagln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("hashtagln(parts)", "$CoreModulePackage.hashtagln"))
|
||||||
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.hashtag]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("hashtag", "$CoreModulePackage.hashtag"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("hashtag(hashtag)", "$CoreModulePackage.hashtag"))
|
||||||
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.hashtag(hashtag))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.hashtag] with new line at the end
|
* Version of [EntitiesBuilder.hashtag] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("hashtagln", "$CoreModulePackage.hashtagln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("hashtagln(hashtag)", "$CoreModulePackage.hashtagln"))
|
||||||
inline fun EntitiesBuilder.hashtagln(hashtag: String) = hashtag(hashtag) + newLine
|
inline fun EntitiesBuilder.hashtagln(hashtag: String) = hashtag(hashtag) + 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.italic]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("italic", "$CoreModulePackage.italic"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("italic(parts)", "$CoreModulePackage.italic"))
|
||||||
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.italic(parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.italic] with new line at the end
|
* Version of [EntitiesBuilder.italic] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("italicln", "$CoreModulePackage.italicln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("italicln(parts)", "$CoreModulePackage.italicln"))
|
||||||
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.italic].
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("italic", "$CoreModulePackage.italic"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("italic(init)", "$CoreModulePackage.italic"))
|
||||||
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.italic(
|
||||||
buildEntities(separator, init)
|
buildEntities(separator, init)
|
||||||
))
|
))
|
||||||
@ -349,45 +304,45 @@ inline fun EntitiesBuilder.italic(noinline init: EntitiesBuilderBody) = add(dev.
|
|||||||
* Version of [EntitiesBuilder.italic] with new line at the end.
|
* Version of [EntitiesBuilder.italic] with new line at the end.
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("italicln", "$CoreModulePackage.italicln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("italicln(init)", "$CoreModulePackage.italicln"))
|
||||||
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.italic]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("italic", "$CoreModulePackage.italic"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("italic(parts)", "$CoreModulePackage.italic"))
|
||||||
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.italic(*parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.italic] with new line at the end
|
* Version of [EntitiesBuilder.italic] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("italicln", "$CoreModulePackage.italicln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("italicln(parts)", "$CoreModulePackage.italicln"))
|
||||||
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.italic]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("italic", "$CoreModulePackage.italic"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("italic(text)", "$CoreModulePackage.italic"))
|
||||||
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.italic(text))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.italic] with new line at the end
|
* Version of [EntitiesBuilder.italic] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("italicln", "$CoreModulePackage.italicln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("italicln(text)", "$CoreModulePackage.italicln"))
|
||||||
inline fun EntitiesBuilder.italicln(text: String) = italic(text) + newLine
|
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.mention]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mention", "$CoreModulePackage.mention"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mention(parts)", "$CoreModulePackage.mention"))
|
||||||
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.mention(parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.mention] with new line at the end
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mentionln", "$CoreModulePackage.mentionln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mentionln(parts)", "$CoreModulePackage.mentionln"))
|
||||||
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.mention].
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mention", "$CoreModulePackage.mention"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mention(init)", "$CoreModulePackage.mention"))
|
||||||
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.mention(
|
||||||
buildEntities(separator, init)
|
buildEntities(separator, init)
|
||||||
))
|
))
|
||||||
@ -395,39 +350,39 @@ inline fun EntitiesBuilder.mention(noinline init: EntitiesBuilderBody) = add(dev
|
|||||||
* Version of [EntitiesBuilder.mention] with new line at the end.
|
* Version of [EntitiesBuilder.mention] with new line at the end.
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mentionln", "$CoreModulePackage.mentionln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mentionln(init)", "$CoreModulePackage.mentionln"))
|
||||||
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.mention]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mention", "$CoreModulePackage.mention"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mention(parts)", "$CoreModulePackage.mention"))
|
||||||
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.mention(*parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.mention] with new line at the end
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mentionln", "$CoreModulePackage.mentionln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mentionln(parts)", "$CoreModulePackage.mentionln"))
|
||||||
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.mention]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mention", "$CoreModulePackage.mention"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mention(whoToMention)", "$CoreModulePackage.mention"))
|
||||||
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.mention(whoToMention))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.mention] with new line at the end
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mentionln", "$CoreModulePackage.mentionln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mentionln(whoToMention)", "$CoreModulePackage.mentionln"))
|
||||||
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.mention]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mention", "$CoreModulePackage.mention"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mention(parts)", "$CoreModulePackage.mention"))
|
||||||
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.mention(parts, user))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.mention] with new line at the end
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mentionln", "$CoreModulePackage.mentionln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mentionln(parts, user)", "$CoreModulePackage.mentionln"))
|
||||||
inline fun EntitiesBuilder.mentionln(parts: TextSourcesList, user: User) = mention(parts) + newLine
|
inline fun EntitiesBuilder.mentionln(parts: TextSourcesList, user: User) = mention(parts) + newLine
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mention", "$CoreModulePackage.mention"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mention(user, parts)", "$CoreModulePackage.mention"))
|
||||||
inline fun EntitiesBuilder.mention(
|
inline fun EntitiesBuilder.mention(
|
||||||
user: User,
|
user: User,
|
||||||
vararg parts: TextSource
|
vararg parts: TextSource
|
||||||
@ -435,35 +390,35 @@ inline fun EntitiesBuilder.mention(
|
|||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.mention] with new line at the end
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mentionln", "$CoreModulePackage.mentionln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mentionln(user, parts)", "$CoreModulePackage.mentionln"))
|
||||||
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.mention]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mention", "$CoreModulePackage.mention"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mention(text, user)", "$CoreModulePackage.mention"))
|
||||||
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.mention(text, user))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.mention] with new line at the end
|
* Version of [EntitiesBuilder.mention] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mentionln", "$CoreModulePackage.mentionln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("mentionln(text, user)", "$CoreModulePackage.mentionln"))
|
||||||
inline fun EntitiesBuilder.mentionln(text: String, user: User) = mention(text) + newLine
|
inline fun EntitiesBuilder.mentionln(text: String, user: User) = mention(text) + 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.phone]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("phone", "$CoreModulePackage.phone"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("phone(parts)", "$CoreModulePackage.phone"))
|
||||||
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.phone(parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.phone] with new line at the end
|
* Version of [EntitiesBuilder.phone] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("phoneln", "$CoreModulePackage.phoneln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("phoneln(parts)", "$CoreModulePackage.phoneln"))
|
||||||
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.phone].
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("phone", "$CoreModulePackage.phone"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("phone(init)", "$CoreModulePackage.phone"))
|
||||||
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.phone(
|
||||||
buildEntities(separator, init)
|
buildEntities(separator, init)
|
||||||
))
|
))
|
||||||
@ -471,39 +426,39 @@ inline fun EntitiesBuilder.phone(noinline init: EntitiesBuilderBody) = add(dev.i
|
|||||||
* Version of [EntitiesBuilder.phone] with new line at the end.
|
* Version of [EntitiesBuilder.phone] with new line at the end.
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("phoneln", "$CoreModulePackage.phoneln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("phoneln(init)", "$CoreModulePackage.phoneln"))
|
||||||
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.phone]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("phone", "$CoreModulePackage.phone"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("phone(parts)", "$CoreModulePackage.phone"))
|
||||||
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.phone(*parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.phone] with new line at the end
|
* Version of [EntitiesBuilder.phone] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("phoneln", "$CoreModulePackage.phoneln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("phoneln(parts)", "$CoreModulePackage.phoneln"))
|
||||||
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.phone]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("phone", "$CoreModulePackage.phone"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("phone(number)", "$CoreModulePackage.phone"))
|
||||||
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.phone(number))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.phone] with new line at the end
|
* Version of [EntitiesBuilder.phone] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("phoneln", "$CoreModulePackage.phoneln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("phoneln(number)", "$CoreModulePackage.phoneln"))
|
||||||
inline fun EntitiesBuilder.phoneln(number: String) = phone(number) + newLine
|
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.pre]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("pre", "$CoreModulePackage.pre"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("pre(code, language)", "$CoreModulePackage.pre"))
|
||||||
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.pre(code, language))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.pre] with new line at the end
|
* Version of [EntitiesBuilder.pre] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("preln", "$CoreModulePackage.preln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("preln(code, language)", "$CoreModulePackage.preln"))
|
||||||
inline fun EntitiesBuilder.preln(code: String, language: String?) = pre(code) + newLine
|
inline fun EntitiesBuilder.preln(code: String, language: String?) = pre(code) + newLine
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -512,7 +467,7 @@ inline fun EntitiesBuilder.preln(code: String, language: String?) = pre(code) +
|
|||||||
* @see RegularTextSource
|
* @see RegularTextSource
|
||||||
* @see dev.inmo.tgbotapi.extensions.utils.formatting.regularln
|
* @see dev.inmo.tgbotapi.extensions.utils.formatting.regularln
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("regular", "$CoreModulePackage.regular"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("regular(text)", "$CoreModulePackage.regular"))
|
||||||
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.regular(text))
|
||||||
/**
|
/**
|
||||||
@ -521,25 +476,25 @@ inline fun EntitiesBuilder.regular(text: String) =
|
|||||||
* @see RegularTextSource
|
* @see RegularTextSource
|
||||||
* @see dev.inmo.tgbotapi.extensions.utils.formatting.regular
|
* @see dev.inmo.tgbotapi.extensions.utils.formatting.regular
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("regularln", "$CoreModulePackage.regularln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("regularln(text)", "$CoreModulePackage.regularln"))
|
||||||
inline fun EntitiesBuilder.regularln(text: String) = regular(text) + newLine
|
inline fun EntitiesBuilder.regularln(text: String) = regular(text) + newLine
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add strikethrough using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.strikethrough]
|
* Add strikethrough using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.strikethrough]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("strikethrough", "$CoreModulePackage.strikethrough"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("strikethrough(parts)", "$CoreModulePackage.strikethrough"))
|
||||||
inline fun EntitiesBuilder.strikethrough(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.strikethrough(parts))
|
inline fun EntitiesBuilder.strikethrough(parts: TextSourcesList) = add(dev.inmo.tgbotapi.types.message.textsources.strikethrough(parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.strikethrough] with new line at the end
|
* Version of [EntitiesBuilder.strikethrough] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("strikethroughln", "$CoreModulePackage.strikethroughln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("strikethroughln(parts)", "$CoreModulePackage.strikethroughln"))
|
||||||
inline fun EntitiesBuilder.strikethroughln(parts: TextSourcesList) = strikethrough(parts) + newLine
|
inline fun EntitiesBuilder.strikethroughln(parts: TextSourcesList) = strikethrough(parts) + newLine
|
||||||
/**
|
/**
|
||||||
* Add strikethrough using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.strikethrough].
|
* Add strikethrough using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.strikethrough].
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("strikethrough", "$CoreModulePackage.strikethrough"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("strikethrough(init)", "$CoreModulePackage.strikethrough"))
|
||||||
inline fun EntitiesBuilder.strikethrough(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.strikethrough(
|
inline fun EntitiesBuilder.strikethrough(noinline init: EntitiesBuilderBody) = add(dev.inmo.tgbotapi.types.message.textsources.strikethrough(
|
||||||
buildEntities(separator, init)
|
buildEntities(separator, init)
|
||||||
))
|
))
|
||||||
@ -547,67 +502,67 @@ inline fun EntitiesBuilder.strikethrough(noinline init: EntitiesBuilderBody) = a
|
|||||||
* Version of [EntitiesBuilder.strikethrough] with new line at the end.
|
* Version of [EntitiesBuilder.strikethrough] with new line at the end.
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("strikethroughln", "$CoreModulePackage.strikethroughln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("strikethroughln(init)", "$CoreModulePackage.strikethroughln"))
|
||||||
inline fun EntitiesBuilder.strikethroughln(noinline init: EntitiesBuilderBody) = strikethrough(init) + newLine
|
inline fun EntitiesBuilder.strikethroughln(noinline init: EntitiesBuilderBody) = strikethrough(init) + newLine
|
||||||
/**
|
/**
|
||||||
* Add strikethrough using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.strikethrough]
|
* Add strikethrough using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.strikethrough]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("strikethrough", "$CoreModulePackage.strikethrough"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("strikethrough(parts)", "$CoreModulePackage.strikethrough"))
|
||||||
inline fun EntitiesBuilder.strikethrough(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.strikethrough(*parts))
|
inline fun EntitiesBuilder.strikethrough(vararg parts: TextSource) = add(dev.inmo.tgbotapi.types.message.textsources.strikethrough(*parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.strikethrough] with new line at the end
|
* Version of [EntitiesBuilder.strikethrough] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("strikethroughln", "$CoreModulePackage.strikethroughln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("strikethroughln(parts)", "$CoreModulePackage.strikethroughln"))
|
||||||
inline fun EntitiesBuilder.strikethroughln(vararg parts: TextSource) = strikethrough(*parts) + newLine
|
inline fun EntitiesBuilder.strikethroughln(vararg parts: TextSource) = strikethrough(*parts) + newLine
|
||||||
/**
|
/**
|
||||||
* Add strikethrough using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.strikethrough]
|
* Add strikethrough using [EntitiesBuilder.add] with [dev.inmo.tgbotapi.types.message.textsources.strikethrough]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("strikethrough", "$CoreModulePackage.strikethrough"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("strikethrough(text)", "$CoreModulePackage.strikethrough"))
|
||||||
inline fun EntitiesBuilder.strikethrough(text: String) = add(dev.inmo.tgbotapi.types.message.textsources.strikethrough(text))
|
inline fun EntitiesBuilder.strikethrough(text: String) = add(dev.inmo.tgbotapi.types.message.textsources.strikethrough(text))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.strikethrough] with new line at the end
|
* Version of [EntitiesBuilder.strikethrough] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("strikethroughln", "$CoreModulePackage.strikethroughln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("strikethroughln(text)", "$CoreModulePackage.strikethroughln"))
|
||||||
inline fun EntitiesBuilder.strikethroughln(text: String) = strikethrough(text) + newLine
|
inline fun EntitiesBuilder.strikethroughln(text: String) = strikethrough(text) + 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.link]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("link", "$CoreModulePackage.link"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("link(text, url)", "$CoreModulePackage.link"))
|
||||||
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.link(text, url))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.link] with new line at the end
|
* Version of [EntitiesBuilder.link] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("linkln", "$CoreModulePackage.linkln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("linkln(text, url)", "$CoreModulePackage.linkln"))
|
||||||
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.link]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("link", "$CoreModulePackage.link"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("link(url)", "$CoreModulePackage.link"))
|
||||||
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.link(url))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.link] with new line at the end
|
* Version of [EntitiesBuilder.link] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("linkln", "$CoreModulePackage.linkln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("linkln(url)", "$CoreModulePackage.linkln"))
|
||||||
inline fun EntitiesBuilder.linkln(url: String) = link(url) + newLine
|
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.underline]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("underline", "$CoreModulePackage.underline"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("underline(parts)", "$CoreModulePackage.underline"))
|
||||||
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.underline(parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.underline] with new line at the end
|
* Version of [EntitiesBuilder.underline] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("underlineln", "$CoreModulePackage.underlineln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("underlineln(parts)", "$CoreModulePackage.underlineln"))
|
||||||
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.underline].
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("underline", "$CoreModulePackage.underline"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("underline(init)", "$CoreModulePackage.underline"))
|
||||||
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.underline(
|
||||||
buildEntities(separator, init)
|
buildEntities(separator, init)
|
||||||
))
|
))
|
||||||
@ -615,69 +570,69 @@ inline fun EntitiesBuilder.underline(noinline init: EntitiesBuilderBody) = add(d
|
|||||||
* Version of [EntitiesBuilder.underline] with new line at the end.
|
* Version of [EntitiesBuilder.underline] with new line at the end.
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("underlineln", "$CoreModulePackage.underlineln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("underlineln(init)", "$CoreModulePackage.underlineln"))
|
||||||
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.underline]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("underline", "$CoreModulePackage.underline"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("underline(parts)", "$CoreModulePackage.underline"))
|
||||||
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.underline(*parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.underline] with new line at the end
|
* Version of [EntitiesBuilder.underline] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("underlineln", "$CoreModulePackage.underlineln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("underlineln(parts)", "$CoreModulePackage.underlineln"))
|
||||||
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.underline]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("underline", "$CoreModulePackage.underline"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("underline(text)", "$CoreModulePackage.underline"))
|
||||||
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.underline(text))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.underline] with new line at the end
|
* Version of [EntitiesBuilder.underline] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("underlineln", "$CoreModulePackage.underlineln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("underlineln(text)", "$CoreModulePackage.underlineln"))
|
||||||
inline fun EntitiesBuilder.underlineln(text: String) = underline(text) + newLine
|
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.customEmoji]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("customEmoji", "$CoreModulePackage.customEmoji"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("customEmoji(customEmojiId, parts)", "$CoreModulePackage.customEmoji"))
|
||||||
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.customEmoji(customEmojiId, parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.customEmoji] with new line at the end
|
* Version of [EntitiesBuilder.customEmoji] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("customEmojiln", "$CoreModulePackage.customEmojiln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("customEmojiln(customEmojiId, parts)", "$CoreModulePackage.customEmojiln"))
|
||||||
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.customEmoji].
|
||||||
* Will reuse separator config from [buildEntities]
|
* Will reuse separator config from [buildEntities]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("customEmoji", "$CoreModulePackage.customEmoji"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("customEmoji(customEmojiId, init)", "$CoreModulePackage.customEmoji"))
|
||||||
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.customEmoji(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]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("customEmojiln", "$CoreModulePackage.customEmojiln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("customEmojiln(customEmojiId, init)", "$CoreModulePackage.customEmojiln"))
|
||||||
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.customEmoji]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("customEmoji", "$CoreModulePackage.customEmoji"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("customEmoji(customEmojiId, parts)", "$CoreModulePackage.customEmoji"))
|
||||||
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.customEmoji(customEmojiId, *parts))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.customEmoji] with new line at the end
|
* Version of [EntitiesBuilder.customEmoji] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("customEmojiln", "$CoreModulePackage.customEmojiln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("customEmojiln(customEmojiId, parts)", "$CoreModulePackage.customEmojiln"))
|
||||||
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.customEmoji]
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("customEmoji", "$CoreModulePackage.customEmoji"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("customEmoji(customEmojiId, text)", "$CoreModulePackage.customEmoji"))
|
||||||
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.customEmoji(customEmojiId, text))
|
||||||
/**
|
/**
|
||||||
* Version of [EntitiesBuilder.customEmoji] with new line at the end
|
* Version of [EntitiesBuilder.customEmoji] with new line at the end
|
||||||
*/
|
*/
|
||||||
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("customEmojiln", "$CoreModulePackage.customEmojiln"))
|
@Deprecated(ReplacedInCoreModuleReason, ReplaceWith("customEmojiln(customEmojiId, text)", "$CoreModulePackage.customEmojiln"))
|
||||||
inline fun EntitiesBuilder.customEmojiln(customEmojiId: CustomEmojiId, text: String) = customEmoji(customEmojiId, text) + newLine
|
inline fun EntitiesBuilder.customEmojiln(customEmojiId: CustomEmojiId, text: String) = customEmoji(customEmojiId, text) + newLine
|
||||||
|
Loading…
Reference in New Issue
Block a user