1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-25 19:48:43 +00:00

Update DeleteMessage.kt

This commit is contained in:
InsanusMokrassar 2022-06-25 18:34:41 +06:00 committed by GitHub
parent 095e318a78
commit 95aeedfb94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,10 @@ suspend fun TelegramBot.delete(
messageId: MessageIdentifier messageId: MessageIdentifier
) = deleteMessage(chat, messageId) ) = deleteMessage(chat, messageId)
suspend fun TelegramBot.delete(
message: Message
) = deleteMessage(message)
suspend fun Message.delete( suspend fun Message.delete(
requestsExecutor: TelegramBot requestsExecutor: TelegramBot
) = requestsExecutor.deleteMessage(this) ) = requestsExecutor.deleteMessage(this)