mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-29 04:47:48 +00:00
15 lines
583 B
Kotlin
15 lines
583 B
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.chat.modify
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.bot.TelegramBot
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.chat.modify.DeleteChatPhoto
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.ChatIdentifier
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.PublicChat
|
|
|
|
suspend fun TelegramBot.deleteChatPhoto(
|
|
chatId: ChatIdentifier
|
|
) = execute(DeleteChatPhoto(chatId))
|
|
|
|
suspend fun TelegramBot.deleteChatPhoto(
|
|
chat: PublicChat
|
|
) = deleteChatPhoto(chat.id)
|