diff --git a/tgbotapi.extensions.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/Replies.kt b/tgbotapi.extensions.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/Replies.kt index b4fbfee26d..fb0e8e0ad0 100644 --- a/tgbotapi.extensions.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/Replies.kt +++ b/tgbotapi.extensions.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/Replies.kt @@ -446,21 +446,21 @@ suspend inline fun TelegramBot.replyWithMediaGroup( allowSendingWithoutReply: Boolean? = null ) = sendMediaGroup(to.chat, media, disableNotification, to.messageId, allowSendingWithoutReply) -suspend inline fun TelegramBot.reply( +suspend inline fun TelegramBot.replyWithPlaylist( to: Message, media: List, disableNotification: Boolean = false, allowSendingWithoutReply: Boolean? = null ) = sendPlaylist(to.chat, media, disableNotification, to.messageId, allowSendingWithoutReply) -suspend inline fun TelegramBot.reply( +suspend inline fun TelegramBot.replyWithDocuments( to: Message, media: List, disableNotification: Boolean = false, allowSendingWithoutReply: Boolean? = null ) = sendDocumentsGroup(to.chat, media, disableNotification, to.messageId, allowSendingWithoutReply) -suspend inline fun TelegramBot.reply( +suspend inline fun TelegramBot.replyWithGallery( to: Message, media: List, disableNotification: Boolean = false, diff --git a/tgbotapi.extensions.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/media/SendMediaGroup.kt b/tgbotapi.extensions.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/media/SendMediaGroup.kt index 55c6d54a25..970f647a67 100644 --- a/tgbotapi.extensions.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/media/SendMediaGroup.kt +++ b/tgbotapi.extensions.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/media/SendMediaGroup.kt @@ -1,7 +1,9 @@ package dev.inmo.tgbotapi.extensions.api.send.media import dev.inmo.tgbotapi.bot.TelegramBot -import dev.inmo.tgbotapi.extensions.api.send.reply +import dev.inmo.tgbotapi.extensions.api.send.replyWithPlaylist +import dev.inmo.tgbotapi.extensions.api.send.replyWithDocuments +import dev.inmo.tgbotapi.extensions.api.send.replyWithGallery import dev.inmo.tgbotapi.extensions.api.send.replyWithMediaGroup import dev.inmo.tgbotapi.requests.send.media.* import dev.inmo.tgbotapi.types.ChatIdentifier @@ -141,36 +143,36 @@ suspend inline fun TelegramBot.replyWithMediaGroup( @Deprecated( "Replaced", - ReplaceWith("reply", "dev.inmo.tgbotapi.extensions.api.send.reply") + ReplaceWith("replyWithPlaylist", "dev.inmo.tgbotapi.extensions.api.send.replyWithPlaylist") ) suspend inline fun TelegramBot.replyWithPlaylist( to: Message, media: List, disableNotification: Boolean = false, allowSendingWithoutReply: Boolean? = null -) = reply(to, media, disableNotification, allowSendingWithoutReply) +) = replyWithPlaylist(to, media, disableNotification, allowSendingWithoutReply) @Deprecated( "Replaced", - ReplaceWith("reply", "dev.inmo.tgbotapi.extensions.api.send.reply") + ReplaceWith("replyWithDocuments", "dev.inmo.tgbotapi.extensions.api.send.replyWithDocuments") ) suspend inline fun TelegramBot.replyWithDocumentsGroup( to: Message, media: List, disableNotification: Boolean = false, allowSendingWithoutReply: Boolean? = null -) = reply(to, media, disableNotification, allowSendingWithoutReply) +) = replyWithDocuments(to, media, disableNotification, allowSendingWithoutReply) @Deprecated( "Replaced", - ReplaceWith("reply", "dev.inmo.tgbotapi.extensions.api.send.reply") + ReplaceWith("replyWithGallery", "dev.inmo.tgbotapi.extensions.api.send.replyWithGallery") ) suspend inline fun TelegramBot.replyWithVisualMediaGroup( to: Message, media: List, disableNotification: Boolean = false, allowSendingWithoutReply: Boolean? = null -) = reply(to, media, disableNotification, allowSendingWithoutReply) +) = replyWithGallery(to, media, disableNotification, allowSendingWithoutReply) @Deprecated( "Replaced",