Package dev.inmo.tgbotapi.utils.extensions

Types

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

Functions

accumulateByKey
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>>
asReference
Link copied to clipboard
fun <T> T.asReference(): WeakReference<T>
escapeMarkdownV2Common
Link copied to clipboard
fun String.escapeMarkdownV2Common(): String
escapeMarkdownV2Link
Link copied to clipboard
fun String.escapeMarkdownV2Link(): String
escapeMarkdownV2PreAndCode
Link copied to clipboard
fun String.escapeMarkdownV2PreAndCode(): String
makeHtmlString
Link copied to clipboard
inline fun TextSourcesList.makeHtmlString(): String
makeMarkdownString
Link copied to clipboard
inline fun TextSourcesList.makeMarkdownString(): String
makeMarkdownV2String
Link copied to clipboard
inline fun TextSourcesList.makeMarkdownV2String(): String
makeSourceString
Link copied to clipboard
inline fun TextSourcesList.makeSourceString(): String
makeString
Link copied to clipboard
inline fun TextSourcesList.makeString(parseMode: ParseMode? = null): String
toHtml
Link copied to clipboard
fun String.toHtml(): String
toMarkdown
Link copied to clipboard
fun String.toMarkdown(): String