fix: use effective_chat everywhere

This commit is contained in:
Macintxsh 2024-11-18 21:48:30 +05:00
parent 736fb9e04a
commit 1a69930b4e
Signed by: mctaylors
GPG key ID: 4EEF4F949A266EE2

View file

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