mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Make phone and password kwargs in start
This commit is contained in:
@@ -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',
|
||||
|
Reference in New Issue
Block a user