2020-10-04 11:06:30 +00:00
|
|
|
package dev.inmo.tgbotapi.types.InputMedia
|
2018-12-26 08:07:24 +00:00
|
|
|
|
2020-11-05 18:12:14 +00:00
|
|
|
import dev.inmo.tgbotapi.requests.abstracts.InputFile
|
2022-05-01 14:36:07 +00:00
|
|
|
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
|
|
|
|
import dev.inmo.tgbotapi.types.message.toRawMessageEntities
|
2020-10-04 11:06:30 +00:00
|
|
|
import dev.inmo.tgbotapi.types.ParseMode.ParseMode
|
2022-04-22 07:54:06 +00:00
|
|
|
import dev.inmo.tgbotapi.types.media.TelegramMediaAnimation
|
2021-08-08 12:00:42 +00:00
|
|
|
import dev.inmo.tgbotapi.utils.extensions.makeString
|
2018-12-26 08:07:24 +00:00
|
|
|
|
2022-04-22 07:54:06 +00:00
|
|
|
@Deprecated("Replaced and renamed", ReplaceWith("TelegramMediaAnimation", "dev.inmo.tgbotapi.types.media.TelegramMediaAnimation"))
|
2020-11-05 10:53:26 +00:00
|
|
|
fun InputMediaAnimation(
|
|
|
|
file: InputFile,
|
|
|
|
text: String? = null,
|
|
|
|
parseMode: ParseMode? = null,
|
|
|
|
width: Int? = null,
|
|
|
|
height: Int? = null,
|
|
|
|
duration: Long? = null,
|
|
|
|
thumb: InputFile? = null
|
2022-04-22 07:54:06 +00:00
|
|
|
) = TelegramMediaAnimation(file, text, parseMode, null, width, height, duration, thumb)
|
2020-11-05 10:53:26 +00:00
|
|
|
|
2022-04-22 07:54:06 +00:00
|
|
|
@Deprecated("Replaced and renamed", ReplaceWith("TelegramMediaAnimation", "dev.inmo.tgbotapi.types.media.TelegramMediaAnimation"))
|
2020-11-05 10:53:26 +00:00
|
|
|
fun InputMediaAnimation(
|
|
|
|
file: InputFile,
|
2021-05-29 09:34:14 +00:00
|
|
|
entities: TextSourcesList,
|
2020-11-05 10:53:26 +00:00
|
|
|
width: Int? = null,
|
|
|
|
height: Int? = null,
|
|
|
|
duration: Long? = null,
|
|
|
|
thumb: InputFile? = null
|
2022-04-22 07:54:06 +00:00
|
|
|
) = TelegramMediaAnimation(
|
2021-05-29 10:02:55 +00:00
|
|
|
file,
|
|
|
|
entities.makeString(),
|
|
|
|
null,
|
|
|
|
entities.toRawMessageEntities(),
|
|
|
|
width,
|
|
|
|
height,
|
|
|
|
duration,
|
|
|
|
thumb
|
|
|
|
)
|
2020-11-05 10:53:26 +00:00
|
|
|
|