mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-29 04:47:48 +00:00
15 lines
478 B
Kotlin
15 lines
478 B
Kotlin
|
package com.github.insanusmokrassar.TelegramBotAPI.requests
|
||
|
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.Request
|
||
|
import kotlinx.serialization.DeserializationStrategy
|
||
|
import kotlinx.serialization.builtins.ByteArraySerializer
|
||
|
|
||
|
class DownloadFile(
|
||
|
val filePath: String
|
||
|
) : Request<ByteArray> {
|
||
|
override fun method(): String = filePath
|
||
|
|
||
|
override val resultDeserializer: DeserializationStrategy<ByteArray>
|
||
|
get() = ByteArraySerializer()
|
||
|
}
|