1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-29 21:48:43 +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, chatId,
animationAsFileId, animationAsFileId,
thumbAsFileId, thumbAsFileId,
caption, text,
parseMode, parseMode,
null, null,
duration, duration,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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