Make phone and password kwargs in start

This commit is contained in:
Lonami Exo
2022-02-17 11:26:35 +01:00
parent 5c6fdf9a71
commit 77a98fed2c
2 changed files with 2 additions and 1 deletions

View File

@@ -313,9 +313,9 @@ class TelegramClient:
@forward_call(auth.start)
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: '),
*,
bot_token: str = None,
code_callback: typing.Callable[[], typing.Union[str, int]] = None,
first_name: str = 'New User',