mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-05 16:55:20 +00:00
Pass the phone number when calling the phone_code callback function
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user