diff --git a/social/handlers_telegram/base.py b/social/handlers_telegram/base.py index 10e1956..dcf2380 100644 --- a/social/handlers_telegram/base.py +++ b/social/handlers_telegram/base.py @@ -52,5 +52,7 @@ async def validate_group(update: Update, context: CustomContext): logger.info("Validation message received") with db(): approve_telegram_group(update) - res = await update.effective_message.delete() - logger.info(f"Validation message handled, delete status = {res}") + try: + await update.effective_message.delete() + except Exception: + logger.exception("Failed to delete message")