change: use html_parser.code when showing ID

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
Macintxsh 2025-06-08 10:56:57 +03:00
parent 1d80adc8d8
commit c1987ab48a
Signed by: mctaylors
GPG key ID: 4EEF4F949A266EE2

View file

@ -235,7 +235,7 @@ async def user_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> No
] ]
reply_markup = InlineKeyboardMarkup(keyboard) reply_markup = InlineKeyboardMarkup(keyboard)
m = [" ".join(["ID:", str(user_data["id"])])] m = [" ".join(["ID:", html_parser.code(user_data["id"])])]
created_at = datetime.fromisoformat(user_data["created_at"]) created_at = datetime.fromisoformat(user_data["created_at"])
m.append(" ".join(["Join Date:", created_at.strftime("%Y-%m-%d")])) m.append(" ".join(["Join Date:", created_at.strftime("%Y-%m-%d")]))
m.append(" ".join(["Level:", user_data["level_string"]])) m.append(" ".join(["Level:", user_data["level_string"]]))