diff --git a/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/stories/RepostStory.kt b/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/stories/RepostStory.kt index 7dd7c24957..930bbaa952 100644 --- a/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/stories/RepostStory.kt +++ b/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/stories/RepostStory.kt @@ -2,6 +2,7 @@ package dev.inmo.tgbotapi.extensions.api.stories import dev.inmo.tgbotapi.bot.TelegramBot import dev.inmo.tgbotapi.requests.stories.RepostStory +import dev.inmo.tgbotapi.types.BusinessChatId import dev.inmo.tgbotapi.types.IdChatIdentifier import dev.inmo.tgbotapi.types.Seconds import dev.inmo.tgbotapi.types.StoryId @@ -25,3 +26,20 @@ public suspend fun TelegramBot.repostStory( protectContent = protectContent ) ) + +public suspend fun TelegramBot.repostStory( + fromChatId: BusinessChatId, + storyId: StoryId, + activePeriod: Seconds, + postToChatPage: Boolean = false, + protectContent: Boolean = false, +): Story = execute( + RepostStory( + businessConnectionId = fromChatId.businessConnectionId, + fromChatId = fromChatId, + storyId = storyId, + activePeriod = activePeriod, + postToChatPage = postToChatPage, + protectContent = protectContent + ) +)