From 1bc829f53d78f8a6b587a1d33597de4babe38a3f Mon Sep 17 00:00:00 2001
From: Remy Moll <me@moll.re>
Date: Mon, 14 Aug 2023 11:47:13 +0200
Subject: [PATCH] Better chat id handling

---
 bot/commands/basehandler.py | 2 +-
 bot/commands/status.py      | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/bot/commands/basehandler.py b/bot/commands/basehandler.py
index c12b2ac..83f92ef 100644
--- a/bot/commands/basehandler.py
+++ b/bot/commands/basehandler.py
@@ -5,4 +5,4 @@ class BaseHandler:
     entry_string: str
 
     async def entry_point(self, update, context) -> None:
-        self.logger.info(f"Chat said: {self.entry_string}")
\ No newline at end of file
+        self.logger.info(f"Chat ({update.message.chat_id}) said: {self.entry_string}")
\ No newline at end of file
diff --git a/bot/commands/status.py b/bot/commands/status.py
index 8657446..5f003b9 100644
--- a/bot/commands/status.py
+++ b/bot/commands/status.py
@@ -53,6 +53,7 @@ class StatusHandler(BaseHandler):
         message += f"Uptime: `{delta[:delta.rfind('.')]}`\n"
         message += f"IP \(public\): `{ip}`\n"
         message += f"IP \(private\): `{local_ips}`\n"
+        message += f"Chat ID: `{update.effective_chat.id}`\n"
 
         if update.message:
             await update.message.reply_text(message, reply_markup=reply_markup, parse_mode=ParseMode.MARKDOWN_V2)