Package dev.inmo.tgbotapi.utils.extensions

Types

Link copied to clipboard
typealias AccumulatedValues<K, V> = Pair<K, List<V>>

Functions

Link copied to clipboard
fun <K, V> ReceiveChannel<Pair<K, V>>.accumulateByKey(    delayMillis: Long,     scope: CoroutineScope = CoroutineScope(Dispatchers.Default),     resultBroadcastChannelCapacity: Int = 32): ReceiveChannel<AccumulatedValues<K, V>>
Link copied to clipboard
fun <T> T.asReference(): WeakReference<T>
Link copied to clipboard
fun createWebAppStartParam(value: String): Pair<String, String>
Link copied to clipboard
fun String.escapeMarkdownV2Common(): String
Link copied to clipboard
fun String.escapeMarkdownV2Link(): String
Link copied to clipboard
fun String.escapeMarkdownV2PreAndCode(): String
Link copied to clipboard
inline fun TextSourcesList.makeHtmlString(): String
Link copied to clipboard
inline fun TextSourcesList.makeMarkdownString(): String
Link copied to clipboard
inline fun TextSourcesList.makeMarkdownV2String(): String
Link copied to clipboard
inline fun TextSourcesList.makeSourceString(): String
Link copied to clipboard
inline fun TextSourcesList.makeString(parseMode: ParseMode? = null): String
Link copied to clipboard
fun String.toHtml(): String
Link copied to clipboard
fun String.toMarkdown(): String