mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-30 04:24:50 +00:00
Allow returning sms codes as int from the callback function
This commit is contained in:
parent
dfc8d00adb
commit
26a41ec00e
1 changed files with 1 additions and 1 deletions
|
|
@ -370,7 +370,7 @@ class Client:
|
|||
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 self.phone_code()
|
||||
else str(self.phone_code())
|
||||
)
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue