Better chat id handling
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3975ca5997
commit
1bc829f53d
@ -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}")
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user