Package dev.inmo.tgbotapi.utils.extensions

Types

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

Functions

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