mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-06 05:00:23 +03:00
Merge 6618690a7c
into 730cf31921
This commit is contained in:
commit
73b9551de9
|
@ -85,7 +85,10 @@ class AuthMethods(MessageParseMethods, UserMethods):
|
|||
"""
|
||||
if code_callback is None:
|
||||
def code_callback():
|
||||
return input('Please enter the code you received: ')
|
||||
code = input('Please enter the code you received: ')
|
||||
if code == '':
|
||||
code = 1
|
||||
return code
|
||||
elif not callable(code_callback):
|
||||
raise ValueError(
|
||||
'The code_callback parameter needs to be a callable '
|
||||
|
|
Loading…
Reference in New Issue
Block a user