From 325a65a92e95264c99857f99a60163e53de80eca Mon Sep 17 00:00:00 2001 From: trojvn Date: Mon, 19 May 2025 21:14:52 +0300 Subject: [PATCH] as prop --- basethon/base_thon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/basethon/base_thon.py b/basethon/base_thon.py index d969dab..face64a 100644 --- a/basethon/base_thon.py +++ b/basethon/base_thon.py @@ -116,7 +116,8 @@ class BaseThon(BaseData): except asyncio.TimeoutError: return "ERROR_AUTH:CONNECTION_ERROR:TIMEOUT" - async def get_phone(self) -> str: + @property + def phone(self) -> str: if not self.me: return "" if isinstance(self.me, User):