mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +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:
|
||||
self.first_name = (
|
||||
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)
|
||||
)
|
||||
|
||||
self.last_name = (
|
||||
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)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user