mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-29 04:47:48 +00:00
18 lines
531 B
Kotlin
18 lines
531 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 TelegramFile(
|
|
@SerialName(fileIdField)
|
|
override val fileId: FileId,
|
|
@SerialName(fileSizeField)
|
|
@Optional
|
|
override val fileSize: Long? = null,
|
|
@SerialName("file_path")
|
|
@Optional
|
|
val filePath: String? = null
|
|
) : TelegramMediaFile
|