mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 20:59:29 +00:00
Fix first_name and last_name not being called if they are callable
This commit is contained in:
parent
161ab79eb3
commit
200ed844fe
@ -578,13 +578,13 @@ class Client(Methods, BaseClient):
|
|||||||
if not phone_registered:
|
if not phone_registered:
|
||||||
self.first_name = (
|
self.first_name = (
|
||||||
input("First name: ") if self.first_name is None
|
input("First name: ") if self.first_name is None
|
||||||
else str(self.first_name) if callable(self.first_name)
|
else str(self.first_name()) if callable(self.first_name)
|
||||||
else str(self.first_name)
|
else str(self.first_name)
|
||||||
)
|
)
|
||||||
|
|
||||||
self.last_name = (
|
self.last_name = (
|
||||||
input("Last name: ") if self.last_name is None
|
input("Last name: ") if self.last_name is None
|
||||||
else str(self.last_name) if callable(self.last_name)
|
else str(self.last_name()) if callable(self.last_name)
|
||||||
else str(self.last_name)
|
else str(self.last_name)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user