fix: use effective_chat everywhere
This commit is contained in:
parent
736fb9e04a
commit
1a69930b4e
1 changed files with 1 additions and 1 deletions
2
main.py
2
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}*."
|
message = f"✅ Server responded with HTTP status code *{resp.status_code}*."
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
message = "❌ Caught exception. Server is probably *offline*."
|
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"(`{update.effective_chat.id}`)\n"
|
||||||
f"```\n{e}```")
|
f"```\n{e}```")
|
||||||
await context.bot.send_message(chat_id=os.getenv("DEVELOPER_ID"),
|
await context.bot.send_message(chat_id=os.getenv("DEVELOPER_ID"),
|
||||||
|
|
Loading…
Reference in a new issue