1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-23 00:57:13 +00:00

completing of captioned input deprecation

This commit is contained in:
InsanusMokrassar 2021-04-26 21:34:13 +06:00
parent d69b2e09d5
commit 70f96ac8fa
10 changed files with 10 additions and 9 deletions

View File

@ -39,7 +39,7 @@ fun SendAnimation(
chatId,
animationAsFileId,
thumbAsFileId,
caption,
text,
parseMode,
null,
duration,

View File

@ -39,7 +39,7 @@ fun SendAudio(
chatId,
audioAsFileId,
thumbAsFileId,
caption,
text,
parseMode,
null,
duration,

View File

@ -46,7 +46,7 @@ fun SendDocument(
chatId,
documentAsFileId,
thumbAsFileId,
caption,
text,
parseMode,
null,
disableNotification,

View File

@ -28,7 +28,7 @@ fun SendPhoto(
val data = SendPhotoData(
chatId,
(photo as? FileId) ?.fileId,
caption,
text,
parseMode,
null,
disableNotification,

View File

@ -40,7 +40,7 @@ fun SendVideo(
chatId,
videoAsFileId,
thumbAsFileId,
caption,
text,
parseMode,
null,
duration,

View File

@ -33,7 +33,7 @@ fun SendVoice(
val data = SendVoiceData(
chatId,
voiceAsFileId,
caption,
text,
parseMode,
null,
duration,

View File

@ -67,7 +67,7 @@ fun AudioFile.toInputMediaAudio(
title: String? = this.title
): InputMediaAudio = InputMediaAudio(
fileId,
caption,
text,
parseMode,
duration,
performer,

View File

@ -50,7 +50,7 @@ fun PhotoSize.toInputMediaPhoto(
parseMode: ParseMode? = null
): InputMediaPhoto = InputMediaPhoto(
fileId,
caption,
text,
parseMode
)

View File

@ -38,7 +38,7 @@ inline fun VideoFile.toInputMediaVideo(
parseMode: ParseMode? = null
) = InputMediaVideo(
fileId,
caption,
text,
parseMode,
width,
height,

View File

@ -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 {