Pass the phone number when calling the phone_code callback function

This commit is contained in:
Dan 2018-06-24 16:11:22 +02:00
parent 66f91b1b63
commit 47043380fb

View file

@ -469,7 +469,7 @@ class Client(Methods, BaseClient):
self.phone_code = (
input("Enter phone code: ") if self.phone_code is None
else self.phone_code if type(self.phone_code) is str
else str(self.phone_code())
else str(self.phone_code(self.phone_number))
)
try: