mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-04 11:02:29 +00:00
Fix regression on supported Python version (#4347)
This commit is contained in:
@@ -19,8 +19,8 @@ class AuthMethods:
|
||||
|
||||
def start(
|
||||
self: 'TelegramClient',
|
||||
phone: 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: '),
|
||||
phone: typing.Union[typing.Callable[[], str], str] = lambda: input('Please enter your phone (or bot token): '),
|
||||
password: typing.Union[typing.Callable[[], str], str] = lambda: getpass.getpass('Please enter your password: '),
|
||||
*,
|
||||
bot_token: str = None,
|
||||
force_sms: bool = False,
|
||||
|
Reference in New Issue
Block a user