mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-01 07:25:23 +00:00
20 lines
629 B
Kotlin
20 lines
629 B
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.types.files
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.FileId
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.files.abstracts.*
|
|
import kotlinx.serialization.*
|
|
|
|
@Serializable
|
|
data class VoiceFile(
|
|
@SerialName(fileIdField)
|
|
override val fileId: FileId,
|
|
@Optional
|
|
override val duration: Long? = null,
|
|
@SerialName(mimeTypeField)
|
|
@Optional
|
|
override val mimeType: String? = null,
|
|
@SerialName(fileSizeField)
|
|
@Optional
|
|
override val fileSize: Long? = null
|
|
) : TelegramMediaFile, MimedMediaFile, PlayableMediaFile
|