From 75d609ab2a581b5a2bbce6caf6aabac1ef04fdea Mon Sep 17 00:00:00 2001 From: Jordan Gillard Date: Tue, 26 Mar 2024 15:30:01 -0400 Subject: [PATCH] Fix type hint in start (#4332) --- telethon/client/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telethon/client/auth.py b/telethon/client/auth.py index 9ca5b458..8592b1ef 100644 --- a/telethon/client/auth.py +++ b/telethon/client/auth.py @@ -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,