# dev.inmo.tgbotapi.utils

docs

# Package dev.inmo.tgbotapi.utils

## Types

BuiltinMimeTypes
Link copied to clipboard
object BuiltinMimeTypes
Content copied to clipboard
ByteReadChannelAllocator
Link copied to clipboard
fun interface ByteReadChannelAllocator
Content copied to clipboard
ByteReadChannelAllocatorDeserializationStrategy
Link copied to clipboard
object ByteReadChannelAllocatorDeserializationStrategy : DeserializationStrategy< ByteReadChannelAllocator >
Content copied to clipboard
FileName
Link copied to clipboard
typealias FileName = String
Content copied to clipboard

File name like hello.jpg

MatrixBuilder
Link copied to clipboard
open class MatrixBuilder < T >
Content copied to clipboard
MimeType
Link copied to clipboard
expect class MimeType
Content copied to clipboard
actual class MimeType
Content copied to clipboard
actual class MimeType : MimeType
Content copied to clipboard
MimeTypeSerializer
Link copied to clipboard
object MimeTypeSerializer : KSerializer< MimeType >
Content copied to clipboard
PreviewFeature
Link copied to clipboard
@ Target (allowedTargets = [ AnnotationTarget.CLASS , AnnotationTarget.CONSTRUCTOR , AnnotationTarget.FIELD , AnnotationTarget.PROPERTY , AnnotationTarget.PROPERTY_GETTER , AnnotationTarget.PROPERTY_SETTER , AnnotationTarget.FUNCTION , AnnotationTarget.TYPEALIAS ])
annotation class PreviewFeature
Content copied to clipboard
RiskFeature
Link copied to clipboard
@ Target (allowedTargets = [ AnnotationTarget.CLASS , AnnotationTarget.CONSTRUCTOR , AnnotationTarget.FIELD , AnnotationTarget.PROPERTY , AnnotationTarget.PROPERTY_GETTER , AnnotationTarget.PROPERTY_SETTER , AnnotationTarget.FUNCTION , AnnotationTarget.TYPEALIAS ])
annotation class RiskFeature (val message: String = lowLevelRiskFeatureMessage)
Content copied to clipboard
RowBuilder
Link copied to clipboard
open class RowBuilder < T >
Content copied to clipboard
TelegramAPIUrlsKeeper
Link copied to clipboard
class TelegramAPIUrlsKeeper ( token: String , hostUrl: String = telegramBotAPIDefaultUrl, urlsSuffixes: String = "")
Content copied to clipboard

## Functions

asInput
Link copied to clipboard
expect suspend fun ByteReadChannel. asInput (): Input
Content copied to clipboard
actual suspend fun ByteReadChannel. asInput (): Input
Content copied to clipboard
actual suspend fun ByteReadChannel. asInput (): Input
Content copied to clipboard
asMimeType
Link copied to clipboard
fun String . asMimeType (): MimeType
Content copied to clipboard
buildMimeType
Link copied to clipboard
fun buildMimeType (raw: String ): MimeType
Content copied to clipboard
mapNotNullValues
Link copied to clipboard
fun < K , V > Map < K , V ?>. mapNotNullValues (): Map < K , V >
Content copied to clipboard
mapOfNotNull
Link copied to clipboard
fun < K , V > mapOfNotNull (vararg pairs: Pair < K , V ?>): Map < K , V >
Content copied to clipboard
mapWithCommonValues
Link copied to clipboard
fun JsonObject. mapWithCommonValues (): Map < String , Any >
Content copied to clipboard
toJson
Link copied to clipboard
fun < T : Any > T . toJson (serializer: SerializationStrategy< T >): JsonObject
Content copied to clipboard
toJsonWithoutNulls
Link copied to clipboard
fun < T : Any > T . toJsonWithoutNulls (serializer: SerializationStrategy< T >): JsonObject
Content copied to clipboard
withoutNulls
Link copied to clipboard
fun JsonArray. withoutNulls (): JsonArray
Content copied to clipboard
fun JsonObject. withoutNulls (): JsonObject
Content copied to clipboard

## Properties

fileExtension
Link copied to clipboard
val String . fileExtension : String
Content copied to clipboard
filenameFromUrl
Link copied to clipboard
val String . filenameFromUrl : FileName
Content copied to clipboard
lowLevelRiskFeatureMessage
Link copied to clipboard
const val lowLevelRiskFeatureMessage : String
Content copied to clipboard
telegramBotAPIDefaultUrl
Link copied to clipboard
const val telegramBotAPIDefaultUrl : String
Content copied to clipboard