From c8c049f12e05138f415d72b3a087016c0f911eb1 Mon Sep 17 00:00:00 2001 From: Jordan Gillard Date: Sun, 24 Mar 2024 13:20:06 -0400 Subject: [PATCH] minor: Update phone and pass type in start() --- 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,