mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
refactor delete extensions
This commit is contained in:
parent
02fa83c92a
commit
679f282bd2
@ -37,11 +37,9 @@ suspend fun RequestsExecutor.deleteMessage(
|
|||||||
) = deleteMessage(chat.id, messageId)
|
) = deleteMessage(chat.id, messageId)
|
||||||
|
|
||||||
suspend fun RequestsExecutor.deleteMessage(
|
suspend fun RequestsExecutor.deleteMessage(
|
||||||
chatId: ChatId,
|
|
||||||
message: Message
|
message: Message
|
||||||
) = deleteMessage(chatId, message.messageId)
|
) = deleteMessage(message.chat, message.messageId)
|
||||||
|
|
||||||
suspend fun RequestsExecutor.deleteMessage(
|
suspend fun Message.delete(
|
||||||
chat: Chat,
|
requestsExecutor: RequestsExecutor
|
||||||
message: Message
|
) = requestsExecutor.deleteMessage(this)
|
||||||
) = deleteMessage(chat.id, message.messageId)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user