Fix type hint in start (#4332)

This commit is contained in:
Jordan Gillard 2024-03-26 15:30:01 -04:00 committed by GitHub
parent 4d34243b98
commit 75d609ab2a
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] = lambda: input('Please enter your phone (or bot token): '),
password: typing.Callable[[], str] = lambda: getpass.getpass('Please enter your password: '),
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: '),
*,
bot_token: str = None,
force_sms: bool = False,