1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-26 03:58:44 +00:00

refactor delete extensions

This commit is contained in:
InsanusMokrassar 2020-02-06 23:28:46 +06:00
parent 02fa83c92a
commit 679f282bd2

View File

@ -37,11 +37,9 @@ suspend fun RequestsExecutor.deleteMessage(
) = deleteMessage(chat.id, messageId)
suspend fun RequestsExecutor.deleteMessage(
chatId: ChatId,
message: Message
) = deleteMessage(chatId, message.messageId)
) = deleteMessage(message.chat, message.messageId)
suspend fun RequestsExecutor.deleteMessage(
chat: Chat,
message: Message
) = deleteMessage(chat.id, message.messageId)
suspend fun Message.delete(
requestsExecutor: RequestsExecutor
) = requestsExecutor.deleteMessage(this)