diff --git a/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/DeleteMessage.kt b/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/DeleteMessage.kt index 981fa91247..a4024a4f5e 100644 --- a/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/DeleteMessage.kt +++ b/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/DeleteMessage.kt @@ -23,6 +23,16 @@ suspend fun TelegramBot.deleteMessage( message: Message ) = deleteMessage(message.chat, message.messageId) +suspend fun TelegramBot.delete( + chatId: ChatIdentifier, + messageId: MessageIdentifier +) = deleteMessage(chatId, messageId) + +suspend fun TelegramBot.delete( + chat: Chat, + messageId: MessageIdentifier +) = deleteMessage(chat, messageId) + suspend fun Message.delete( requestsExecutor: TelegramBot ) = requestsExecutor.deleteMessage(this)