From 7483988faa88da85813b1b526314ed642ac93bd1 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 22 Sep 2022 15:24:53 +0600 Subject: [PATCH] remove handling of welcome message sending errors --- welcome/src/main/kotlin/WelcomePlugin.kt | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/welcome/src/main/kotlin/WelcomePlugin.kt b/welcome/src/main/kotlin/WelcomePlugin.kt index c7473b0..091add3 100644 --- a/welcome/src/main/kotlin/WelcomePlugin.kt +++ b/welcome/src/main/kotlin/WelcomePlugin.kt @@ -190,15 +190,11 @@ class WelcomePlugin : Plugin { return@onNewChatMembers } - try { - reply( - it, - chatSettings.sourceChatId, - chatSettings.sourceMessageId - ) - } catch (e: RequestException) { - log.e("Unable to send welcome message", e) - } + reply( + it, + chatSettings.sourceChatId, + chatSettings.sourceMessageId + ) } }