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