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

View File

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