mirror of
https://github.com/InsanusMokrassar/TelegramBotTutorial.git
synced 2024-12-22 06:07:11 +00:00
replace unset of welcome message by logging of errors on welcome sending
This commit is contained in:
parent
8634007e06
commit
2ba35e7b9b
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user