Fixed login bug

This commit is contained in:
Egor Aristov 2020-06-14 19:58:38 +03:00
parent bf01c21a01
commit 962cfdbef7

View File

@ -296,7 +296,8 @@ async def login(config: Config):
Log into your telegram account interactively and save the login information to session file
"""
await config.client.start()
click.echo(f'You are logged in as {await config.client.get_me().first_name}')
me = await config.client.get_me()
click.echo(f'You are logged in as {me.first_name}')
click.echo('To switch user: either pass another session-file or remove existing')