mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-21 17:06:36 +03:00
Fix type hint in start (#4332)
This commit is contained in:
parent
4d34243b98
commit
75d609ab2a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user