mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
completing of captioned input deprecation
This commit is contained in:
parent
d69b2e09d5
commit
70f96ac8fa
@ -39,7 +39,7 @@ fun SendAnimation(
|
||||
chatId,
|
||||
animationAsFileId,
|
||||
thumbAsFileId,
|
||||
caption,
|
||||
text,
|
||||
parseMode,
|
||||
null,
|
||||
duration,
|
||||
|
@ -39,7 +39,7 @@ fun SendAudio(
|
||||
chatId,
|
||||
audioAsFileId,
|
||||
thumbAsFileId,
|
||||
caption,
|
||||
text,
|
||||
parseMode,
|
||||
null,
|
||||
duration,
|
||||
|
@ -46,7 +46,7 @@ fun SendDocument(
|
||||
chatId,
|
||||
documentAsFileId,
|
||||
thumbAsFileId,
|
||||
caption,
|
||||
text,
|
||||
parseMode,
|
||||
null,
|
||||
disableNotification,
|
||||
|
@ -28,7 +28,7 @@ fun SendPhoto(
|
||||
val data = SendPhotoData(
|
||||
chatId,
|
||||
(photo as? FileId) ?.fileId,
|
||||
caption,
|
||||
text,
|
||||
parseMode,
|
||||
null,
|
||||
disableNotification,
|
||||
|
@ -40,7 +40,7 @@ fun SendVideo(
|
||||
chatId,
|
||||
videoAsFileId,
|
||||
thumbAsFileId,
|
||||
caption,
|
||||
text,
|
||||
parseMode,
|
||||
null,
|
||||
duration,
|
||||
|
@ -33,7 +33,7 @@ fun SendVoice(
|
||||
val data = SendVoiceData(
|
||||
chatId,
|
||||
voiceAsFileId,
|
||||
caption,
|
||||
text,
|
||||
parseMode,
|
||||
null,
|
||||
duration,
|
||||
|
@ -67,7 +67,7 @@ fun AudioFile.toInputMediaAudio(
|
||||
title: String? = this.title
|
||||
): InputMediaAudio = InputMediaAudio(
|
||||
fileId,
|
||||
caption,
|
||||
text,
|
||||
parseMode,
|
||||
duration,
|
||||
performer,
|
||||
|
@ -50,7 +50,7 @@ fun PhotoSize.toInputMediaPhoto(
|
||||
parseMode: ParseMode? = null
|
||||
): InputMediaPhoto = InputMediaPhoto(
|
||||
fileId,
|
||||
caption,
|
||||
text,
|
||||
parseMode
|
||||
)
|
||||
|
||||
|
@ -38,7 +38,7 @@ inline fun VideoFile.toInputMediaVideo(
|
||||
parseMode: ParseMode? = null
|
||||
) = InputMediaVideo(
|
||||
fileId,
|
||||
caption,
|
||||
text,
|
||||
parseMode,
|
||||
width,
|
||||
height,
|
||||
|
@ -1,6 +1,7 @@
|
||||
package dev.inmo.tgbotapi.types.message.content.abstracts
|
||||
|
||||
import dev.inmo.tgbotapi.CommonAbstracts.CaptionedInput
|
||||
import dev.inmo.tgbotapi.CommonAbstracts.TextedInput
|
||||
import dev.inmo.tgbotapi.types.InputMedia.*
|
||||
|
||||
interface MediaGroupContent : MediaContent, CaptionedInput, TextedInput {
|
||||
|
Loading…
Reference in New Issue
Block a user