From dd6b688ae4abbb8981584e55967e3ec24a8a8d50 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 8 Nov 2022 17:29:43 +0600 Subject: [PATCH] update deleteForumTopic --- .../tgbotapi/extensions/api/chat/forum/DeleteForumTopic.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/chat/forum/DeleteForumTopic.kt b/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/chat/forum/DeleteForumTopic.kt index 032ba807b2..6de481c828 100644 --- a/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/chat/forum/DeleteForumTopic.kt +++ b/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/chat/forum/DeleteForumTopic.kt @@ -17,6 +17,11 @@ suspend fun TelegramBot.deleteForumTopic( ) ) +suspend fun TelegramBot.deleteForumTopic( + chatId: ChatIdentifier, + forumTopic: ForumTopic +) = deleteForumTopic(chatId, forumTopic.messageThreadId) + suspend fun TelegramBot.deleteForumTopic( chat: Chat, messageThreadId: MessageThreadId