mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2026-04-20 17:02:25 +00:00
build fix
This commit is contained in:
@@ -44,7 +44,11 @@ suspend fun main(args: Array<String>) {
|
||||
onCommand("delete") {
|
||||
val deleted = runCatchingSafely {
|
||||
deleteStickerSet(it.chat.stickerSetName())
|
||||
}.getOrElse { false }
|
||||
}.map {
|
||||
true
|
||||
}.getOrElse {
|
||||
false
|
||||
}
|
||||
|
||||
if (deleted) {
|
||||
reply(it, "Deleted")
|
||||
|
||||
Reference in New Issue
Block a user