2018-12-26 08:07:24 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.types.InputMedia
|
|
|
|
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.InputFile
|
2019-02-21 06:09:04 +00:00
|
|
|
import kotlinx.serialization.Serializable
|
2018-12-26 08:07:24 +00:00
|
|
|
|
2019-12-03 06:40:21 +00:00
|
|
|
fun String.toInputMediaFileAttachmentName() = "attach://$this"
|
2018-12-26 08:07:24 +00:00
|
|
|
|
2019-02-21 06:09:04 +00:00
|
|
|
@Serializable(InputMediaSerializer::class)
|
2018-12-26 08:07:24 +00:00
|
|
|
interface InputMedia {
|
|
|
|
val type: String
|
|
|
|
val file: InputFile
|
|
|
|
}
|