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"),