replace unset of welcome message by logging of errors on welcome sending

This commit is contained in:
InsanusMokrassar 2022-09-22 15:24:07 +06:00
parent 8634007e06
commit 2ba35e7b9b
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import db.WelcomeTable
import dev.inmo.kslog.common.e
import dev.inmo.kslog.common.logger
import dev.inmo.plagubot.Plugin
import dev.inmo.plagubot.plugins.commands.full
@ -196,7 +197,7 @@ class WelcomePlugin : Plugin {
chatSettings.sourceMessageId
)
} catch (e: RequestException) {
welcomeTable.unset(it.chat.id)
log.e("Unable to send welcome message", e)
}
}
}