Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class EntitiesBuilder(val separator: TextSource? = null)

This builder can be used to provide building of TextSources List

Link copied to clipboard
Link copied to clipboard
typealias FileName = String

File name like hello.jpg

Link copied to clipboard
open class MatrixBuilder<T>
Link copied to clipboard
@Serializable(with = MimeTypeSerializer::class)
expect class MimeType
@Serializable(with = MimeTypeSerializer::class)
actual class MimeType
@Serializable(with = MimeTypeSerializer::class)
actual class MimeType : MimeType
Link copied to clipboard
object MimeTypeSerializer : KSerializer<MimeType>
Link copied to clipboard
@Serializable
value class RGBColor(val int: Int)
Link copied to clipboard
open class RowBuilder<T>
Link copied to clipboard
class TelegramAPIUrlsKeeper(token: String, hostUrl: String = telegramBotAPIDefaultUrl, urlsSuffixes: String = "")

Functions

Link copied to clipboard
expect suspend fun ByteReadChannel.asInput(): Input
actual suspend fun ByteReadChannel.asInput(): Input
actual suspend fun ByteReadChannel.asInput(): Input
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

Version of EntitiesBuilder.botCommand with new line at the end

Link copied to clipboard
inline fun buildEntities(separator: TextSource? = null, init: EntitiesBuilderBody): TextSourcesList
inline fun buildEntities(separator: String, init: EntitiesBuilderBody): List<TextSource>
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

Version of EntitiesBuilder.code with new line at the end

Link copied to clipboard
Link copied to clipboard
inline fun EntitiesBuilder.customEmojiln(customEmojiId: CustomEmojiId, vararg parts: TextSource): EntitiesBuilder

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

Link copied to clipboard
inline fun EntitiesBuilder.emailln(emailAddress: String): EntitiesBuilder

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

Link copied to clipboard
inline fun <T> flatMatrix(vararg elements: T): Matrix<T>
inline fun <T> flatMatrix(block: RowBuilder<T>.() -> Unit): Matrix<T>
Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Version of EntitiesBuilder.link with new line at the end

Link copied to clipboard
fun <K, V> Map<K, V?>.mapNotNullValues(): Map<K, V>
Link copied to clipboard
fun <K, V> mapOfNotNull(vararg pairs: Pair<K, V?>): Map<K, V>
Link copied to clipboard
fun JsonObject.mapWithCommonValues(): Map<String, Any>
Link copied to clipboard
inline fun <T> matrix(block: MatrixBuilder<T>.() -> Unit): Matrix<T>
Link copied to clipboard
inline fun EntitiesBuilder.mentionln(whoToMention: String): EntitiesBuilder
inline fun EntitiesBuilder.mentionln(user: User, vararg parts: TextSource): EntitiesBuilder

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

Link copied to clipboard

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

Link copied to clipboard
operator fun <T> RowBuilder<T>.plus(t: T): Boolean
Link copied to clipboard
Link copied to clipboard
inline fun EntitiesBuilder.preln(code: String, language: String?): EntitiesBuilder

Version of EntitiesBuilder.pre with new line at the end

Link copied to clipboard
Link copied to clipboard
inline fun <T> row(block: RowBuilder<T>.() -> Unit): List<T>
inline fun <T> MatrixBuilder<T>.row(vararg elements: T)
inline fun <T> MatrixBuilder<T>.row(block: RowBuilder<T>.() -> Unit)
Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
fun <T : Any> T.toJson(serializer: SerializationStrategy<T>): JsonObject
Link copied to clipboard
fun <T : Any> T.toJsonWithoutNulls(serializer: SerializationStrategy<T>): JsonObject
Link copied to clipboard

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

Link copied to clipboard
fun JsonArray.withoutNulls(): JsonArray
fun JsonObject.withoutNulls(): JsonObject

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard