From 1a69930b4e97d6dc34e2f21a2496a45b36544dce Mon Sep 17 00:00:00 2001 From: mctaylors Date: Mon, 18 Nov 2024 21:48:30 +0500 Subject: [PATCH] fix: use effective_chat everywhere --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 4beedde..766fc8b 100644 --- a/main.py +++ b/main.py @@ -23,7 +23,7 @@ async def ping_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> No message = f"✅ Server responded with HTTP status code *{resp.status_code}*." except Exception as e: message = "❌ Caught exception. Server is probably *offline*." - dev_message = (f"Caught exception @ {update.effective_user.mention_markdown()} " + dev_message = (f"Caught exception @ *{update.effective_chat.effective_name}* " f"(`{update.effective_chat.id}`)\n" f"```\n{e}```") await context.bot.send_message(chat_id=os.getenv("DEVELOPER_ID"),