mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-26 03:58:44 +00:00
Update DeleteMessage.kt
This commit is contained in:
parent
4aa2d2ae41
commit
095e318a78
@ -23,6 +23,16 @@ suspend fun TelegramBot.deleteMessage(
|
|||||||
message: Message
|
message: Message
|
||||||
) = deleteMessage(message.chat, message.messageId)
|
) = 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(
|
suspend fun Message.delete(
|
||||||
requestsExecutor: TelegramBot
|
requestsExecutor: TelegramBot
|
||||||
) = requestsExecutor.deleteMessage(this)
|
) = requestsExecutor.deleteMessage(this)
|
||||||
|
Loading…
Reference in New Issue
Block a user