Fix regression on supported Python version (#4347)

This commit is contained in:
Shubham Kumar 2024-04-13 00:36:15 +05:30 committed by GitHub
parent 49a8f111d3
commit d3a201a277
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,