From de68f83c1f810a97d8c5b2adea36ebecaceb0201 Mon Sep 17 00:00:00 2001 From: Kunoi Sayami <46131041+KunoiSayami@users.noreply.github.com> Date: Sun, 14 Mar 2021 19:41:26 +0800 Subject: [PATCH] Use fixed length mask instead of dynamic length (#635) --- pyrogram/types/object.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/types/object.py b/pyrogram/types/object.py index 8c344bfb..daeb89af 100644 --- a/pyrogram/types/object.py +++ b/pyrogram/types/object.py @@ -56,7 +56,7 @@ class Object(metaclass=Meta): "_": obj.__class__.__name__, **{ attr: ( - "*" * len(getattr(obj, attr)) + "*" * 9 if attr == "phone_number" else str(datetime.fromtimestamp(getattr(obj, attr))) if attr.endswith("date") else