//[docs](../../index.md)/[dev.inmo.tgbotapi.utils](index.md)
# Package dev.inmo.tgbotapi.utils
## Types
| Name | Summary |
|---|---|
| [BuiltinMimeTypes](-builtin-mime-types/index.md)| [common]
Content
object [BuiltinMimeTypes](-builtin-mime-types/index.md)
|
| [FileName](index.md#%5Bdev.inmo.tgbotapi.utils%2FFileName%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)| [common]
Content
typealias [FileName](index.md#%5Bdev.inmo.tgbotapi.utils%2FFileName%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081) = [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
More info
File name like hello.jpg
|
| [MatrixBuilder](-matrix-builder/index.md)| [common]
Content
class [MatrixBuilder](-matrix-builder/index.md)<[T](-matrix-builder/index.md)>
|
| [MimeType](-mime-type/index.md)| [common, js, jvm]
Content
[common, js]
class [MimeType](-mime-type/index.md)
[jvm]
class [MimeType](-mime-type/index.md) : [MimeType](https://docs.oracle.com/javase/8/docs/api/javax/activation/MimeType.html)
|
| [PreviewFeature](-preview-feature/index.md)| [common]
Content
@[Target](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-target/index.html)(allowedTargets = [[AnnotationTarget.CLASS](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-c-l-a-s-s/index.html), [AnnotationTarget.CONSTRUCTOR](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-c-o-n-s-t-r-u-c-t-o-r/index.html), [AnnotationTarget.FIELD](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-f-i-e-l-d/index.html), [AnnotationTarget.PROPERTY](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-p-r-o-p-e-r-t-y/index.html), [AnnotationTarget.PROPERTY_GETTER](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-p-r-o-p-e-r-t-y_-g-e-t-t-e-r/index.html), [AnnotationTarget.PROPERTY_SETTER](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-p-r-o-p-e-r-t-y_-s-e-t-t-e-r/index.html), [AnnotationTarget.FUNCTION](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-f-u-n-c-t-i-o-n/index.html), [AnnotationTarget.TYPE](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-t-y-p-e/index.html), [AnnotationTarget.TYPEALIAS](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-t-y-p-e-a-l-i-a-s/index.html), [AnnotationTarget.TYPE_PARAMETER](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-t-y-p-e_-p-a-r-a-m-e-t-e-r/index.html)])
annotation class [PreviewFeature](-preview-feature/index.md)
|
| [RiskFeature](-risk-feature/index.md)| [common]
Content
@[Target](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-target/index.html)(allowedTargets = [[AnnotationTarget.CLASS](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-c-l-a-s-s/index.html), [AnnotationTarget.CONSTRUCTOR](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-c-o-n-s-t-r-u-c-t-o-r/index.html), [AnnotationTarget.FIELD](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-f-i-e-l-d/index.html), [AnnotationTarget.PROPERTY](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-p-r-o-p-e-r-t-y/index.html), [AnnotationTarget.PROPERTY_GETTER](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-p-r-o-p-e-r-t-y_-g-e-t-t-e-r/index.html), [AnnotationTarget.PROPERTY_SETTER](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-p-r-o-p-e-r-t-y_-s-e-t-t-e-r/index.html), [AnnotationTarget.FUNCTION](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-f-u-n-c-t-i-o-n/index.html), [AnnotationTarget.TYPE](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-t-y-p-e/index.html), [AnnotationTarget.TYPEALIAS](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-t-y-p-e-a-l-i-a-s/index.html), [AnnotationTarget.TYPE_PARAMETER](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-target/-t-y-p-e_-p-a-r-a-m-e-t-e-r/index.html)])
annotation class [RiskFeature](-risk-feature/index.md)(**message**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))
|
| [RowBuilder](-row-builder/index.md)| [common]
Content
class [RowBuilder](-row-builder/index.md)<[T](-row-builder/index.md)>
|
| [StorageFile](-storage-file/index.md)| [common]
Content
data class [StorageFile](-storage-file/index.md)(**storageFileInfo**: [StorageFileInfo](-storage-file-info/index.md), **inputSource**: () -> )
More info
Contains info about file, which potentially can be sent to telegram system.
|
| [StorageFileInfo](-storage-file-info/index.md)| [common]
Content
data class [StorageFileInfo](-storage-file-info/index.md)(**contentType**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **fileName**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))
More info
Information about file for [StorageFile](-storage-file/index.md)
|
| [TelegramAPIUrlsKeeper](-telegram-a-p-i-urls-keeper/index.md)| [common]
Content
class [TelegramAPIUrlsKeeper](-telegram-a-p-i-urls-keeper/index.md)(**token**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **hostUrl**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))
|
## Functions
| Name | Summary |
|---|---|
| [asMimeType](as-mime-type.md)| [common]
Content
fun [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html).[asMimeType](as-mime-type.md)(): [MimeType](-mime-type/index.md)
|
| [asStorageFile](as-storage-file.md)| [common]
Content
inline fun [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html).[asStorageFile](as-storage-file.md)(fileName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), mimeType: [MimeType](-mime-type/index.md)): [StorageFile](-storage-file/index.md)
|
| [buildMimeType](build-mime-type.md)| [common]
Content
fun [buildMimeType](build-mime-type.md)(raw: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [MimeType](-mime-type/index.md)
|
| [flatMatrix](flat-matrix.md)| [common]
Content
fun <[T](flat-matrix.md)> [flatMatrix](flat-matrix.md)(vararg elements: [T](flat-matrix.md)): [Matrix](../dev.inmo.tgbotapi.types.buttons/index.md#%5Bdev.inmo.tgbotapi.types.buttons%2FMatrix%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)<[T](flat-matrix.md)>
fun <[T](flat-matrix.md)> [flatMatrix](flat-matrix.md)(block: [RowBuilder](-row-builder/index.md)<[T](flat-matrix.md)>.() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [Matrix](../dev.inmo.tgbotapi.types.buttons/index.md#%5Bdev.inmo.tgbotapi.types.buttons%2FMatrix%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)<[T](flat-matrix.md)>
|
| [mapNotNullValues](map-not-null-values.md)| [common]
Content
fun <[K](map-not-null-values.md), [V](map-not-null-values.md)> [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[K](map-not-null-values.md), [V](map-not-null-values.md)?>.[mapNotNullValues](map-not-null-values.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[K](map-not-null-values.md), [V](map-not-null-values.md)>
|
| [mapOfNotNull](map-of-not-null.md)| [common]
Content
fun <[K](map-of-not-null.md), [V](map-of-not-null.md)> [mapOfNotNull](map-of-not-null.md)(vararg pairs: [Pair](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html)<[K](map-of-not-null.md), [V](map-of-not-null.md)?>): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[K](map-of-not-null.md), [V](map-of-not-null.md)>
|
| [mapWithCommonValues](map-with-common-values.md)| [common]
Content
fun .[mapWithCommonValues](map-with-common-values.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>
|
| [matrix](matrix.md)| [common]
Content
fun <[T](matrix.md)> [matrix](matrix.md)(block: [MatrixBuilder](-matrix-builder/index.md)<[T](matrix.md)>.() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [Matrix](../dev.inmo.tgbotapi.types.buttons/index.md#%5Bdev.inmo.tgbotapi.types.buttons%2FMatrix%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)<[T](matrix.md)>
|
| [plus](plus.md)| [common]
Content
operator fun <[T](plus.md)> [RowBuilder](-row-builder/index.md)<[T](plus.md)>.[plus](plus.md)(t: [T](plus.md)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
|
| [row](row.md)| [common]
Content
fun <[T](row.md)> [row](row.md)(block: [RowBuilder](-row-builder/index.md)<[T](row.md)>.() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[T](row.md)>
fun <[T](row.md)> [MatrixBuilder](-matrix-builder/index.md)<[T](row.md)>.[row](row.md)(vararg elements: [T](row.md))
fun <[T](row.md)> [MatrixBuilder](-matrix-builder/index.md)<[T](row.md)>.[row](row.md)(block: [RowBuilder](-row-builder/index.md)<[T](row.md)>.() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html))
|
| | [jvm, common]
Content
[jvm]
fun [StorageFile](index.md#%5Bdev.inmo.tgbotapi.utils%2F%2FStorageFile%2F%23java.io.File%2FPointingToDeclaration%2F%5D%2FFunctions%2F745855401)(file: [File](https://docs.oracle.com/javase/8/docs/api/java/io/File.html)): [StorageFile](-storage-file/index.md)
[common]
inline fun [StorageFile](-storage-file.md)(fileName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), bytes: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html), mimeType: [MimeType](-mime-type/index.md)): [StorageFile](-storage-file/index.md)
|
| [toJson](to-json.md)| [common]
Content
fun <[T](to-json.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [T](to-json.md).[toJson](to-json.md)(serializer: <[T](to-json.md)>):
|
| [toJsonWithoutNulls](to-json-without-nulls.md)| [common]
Content
fun <[T](to-json-without-nulls.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [T](to-json-without-nulls.md).[toJsonWithoutNulls](to-json-without-nulls.md)(serializer: <[T](to-json-without-nulls.md)>):
|
| [withoutNulls](without-nulls.md)| [common]
Content
fun .[withoutNulls](without-nulls.md)():
|
## Properties
| Name | Summary |
|---|---|
| [fileExtension](file-extension.md)| [common] val [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html).[fileExtension](file-extension.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
|
| [filenameFromUrl](filename-from-url.md)| [common] val [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html).[filenameFromUrl](filename-from-url.md): [FileName](index.md#%5Bdev.inmo.tgbotapi.utils%2FFileName%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)
|
| [lowLevelRiskFeatureMessage](low-level-risk-feature-message.md)| [common] const val [lowLevelRiskFeatureMessage](low-level-risk-feature-message.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
|
| [telegramBotAPIDefaultUrl](telegram-bot-a-p-i-default-url.md)| [common] const val [telegramBotAPIDefaultUrl](telegram-bot-a-p-i-default-url.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
|