From 962cfdbef71e3eccfd95b673559ff36fc7207aa0 Mon Sep 17 00:00:00 2001 From: Egor3f Date: Sun, 14 Jun 2020 19:58:38 +0300 Subject: [PATCH] Fixed login bug --- telecup_cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telecup_cli.py b/telecup_cli.py index b2f90c9..0c5d10c 100644 --- a/telecup_cli.py +++ b/telecup_cli.py @@ -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')