mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +03:00
Fix regression on supported Python version (#4347)
This commit is contained in:
parent
49a8f111d3
commit
d3a201a277
|
@ -19,8 +19,8 @@ class AuthMethods:
|
||||||
|
|
||||||
def start(
|
def start(
|
||||||
self: 'TelegramClient',
|
self: 'TelegramClient',
|
||||||
phone: typing.Callable[[], str] | str = lambda: input('Please enter your phone (or bot token): '),
|
phone: typing.Union[typing.Callable[[], str], str] = lambda: input('Please enter your phone (or bot token): '),
|
||||||
password: typing.Callable[[], str] | str = lambda: getpass.getpass('Please enter your password: '),
|
password: typing.Union[typing.Callable[[], str], str] = lambda: getpass.getpass('Please enter your password: '),
|
||||||
*,
|
*,
|
||||||
bot_token: str = None,
|
bot_token: str = None,
|
||||||
force_sms: bool = False,
|
force_sms: bool = False,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user