mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-05 08:09:21 +00:00
deprecations
This commit is contained in:
@@ -3,6 +3,7 @@ package dev.inmo.tgbotapi.types.InputMedia
|
||||
import dev.inmo.tgbotapi.requests.abstracts.InputFile
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Deprecated("Will be removed due to redundancy for end-side users")
|
||||
fun String.toInputMediaFileAttachmentName() = "attach://$this"
|
||||
|
||||
@Serializable(InputMediaSerializer::class)
|
||||
|
@@ -9,6 +9,7 @@ interface ThumbedInputMedia : InputMedia {
|
||||
val thumb: InputFile?
|
||||
@Serializable
|
||||
@SerialName(thumbField)
|
||||
@Deprecated("Will be removed due to useless state")
|
||||
val thumbMedia: String?
|
||||
get() = thumb ?.let {
|
||||
when (it) {
|
||||
|
Reference in New Issue
Block a user