mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-23 00:57:13 +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)
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user