mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-18 04:20:57 +03:00
Micro code style improvement (#125)
This commit is contained in:
parent
9130a94153
commit
74a851b5cc
|
@ -97,8 +97,7 @@ class InteractiveTelegramClient(TelegramClient):
|
||||||
print_title('Dialogs window')
|
print_title('Dialogs window')
|
||||||
|
|
||||||
# Display them so the user can choose
|
# Display them so the user can choose
|
||||||
for i, entity in enumerate(entities):
|
for i, entity in enumerate(entities, start=1):
|
||||||
i += 1 # 1-based index
|
|
||||||
sprint('{}. {}'.format(i, get_display_name(entity)))
|
sprint('{}. {}'.format(i, get_display_name(entity)))
|
||||||
|
|
||||||
# Let the user decide who they want to talk to
|
# Let the user decide who they want to talk to
|
||||||
|
|
Loading…
Reference in New Issue
Block a user