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: