Better chat id handling
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Remy Moll 2023-08-14 11:47:13 +02:00
parent 3975ca5997
commit 1bc829f53d
2 changed files with 2 additions and 1 deletions

View File

@ -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}")
self.logger.info(f"Chat ({update.message.chat_id}) said: {self.entry_string}")

View File

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