mirror of
https://github.com/InsanusMokrassar/TelegramBotTutorial.git
synced 2025-08-13 04:49:36 +00:00
replace unset of welcome message by logging of errors on welcome sending
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user