Skip to content

Commit

Permalink
Fix regression on supported Python version (#4347)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshubham506 committed Apr 12, 2024
1 parent 49a8f11 commit d3a201a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telethon/client/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d3a201a

Please sign in to comment.