mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-22 16:47:13 +00:00
deprecations
This commit is contained in:
parent
957649603b
commit
d7bca15693
@ -34,6 +34,8 @@
|
||||
* New extension `TelegramMediaFile#asDocumentFile`
|
||||
* New extension `VideoFile#toInputMediaVideo`
|
||||
* New exception `WrongFileIdentifierException`
|
||||
* Extension `String#toInputMediaFileAttachmentName` now is deprecated
|
||||
* Property `ThumbedInputMedia#thumbMedia` now is deprecated
|
||||
* `API`:
|
||||
* New extensions for media groups:
|
||||
* `TelegramBot#sendPlaylist`
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user