From 03f332194258e0d72af4e4240f89c13296f1c7d1 Mon Sep 17 00:00:00 2001 From: Daniil Isakov Date: Thu, 5 Mar 2026 02:55:57 +0300 Subject: [PATCH] style: format session_string_generator.py with black --- session_string_generator.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/session_string_generator.py b/session_string_generator.py index 9287e1f..5a06d3b 100755 --- a/session_string_generator.py +++ b/session_string_generator.py @@ -69,9 +69,7 @@ def _phone_login(client: TelegramClient) -> None: try: client.send_code_request(phone) except errors.FloodWaitError as e: - print( - f"\nFlood wait error; you must wait {e.seconds} seconds before trying again." - ) + print(f"\nFlood wait error; you must wait {e.seconds} seconds before trying again.") client.disconnect() sys.exit(1) except errors.PhoneNumberInvalidError: @@ -97,9 +95,7 @@ def main() -> None: if not API_ID or not API_HASH: print("Error: TELEGRAM_API_ID and TELEGRAM_API_HASH must be set in .env file") - print( - "Create an .env file with your credentials from https://my.telegram.org/apps" - ) + print("Create an .env file with your credentials from https://my.telegram.org/apps") sys.exit(1) try: