From 17524a3a9e6b3bc61e086c3c54b1c1d2425c4ff4 Mon Sep 17 00:00:00 2001 From: TheF3n1x Date: Tue, 12 Jan 2021 18:42:55 +0100 Subject: [PATCH] Modificazione menu --- telegramexporter.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/telegramexporter.py b/telegramexporter.py index 61f587d..c00e425 100644 --- a/telegramexporter.py +++ b/telegramexporter.py @@ -810,17 +810,18 @@ if __name__ == "__main__": show_banner() response = -1 # Create an instance of the pyrogram client + + if os.path.exists("extraction"): + clean_folder = input("Do you want to clean extraction folder from previous extractions files? (y/N): ") + if clean_folder == 'y': + clean_extraction_folder() + while response != 0: update_folders() with Client("my_account", hide_password=True) as client: - if os.path.exists("extraction"): - clean_folder = input("Do you want to clean extraction folder from previous extractions files? (y/N): ") - if clean_folder == 'y': - clean_extraction_folder() - try: type_of_extraction = int(input("\nEnter: \n[1] to extract the chats for a single user " " \n[2] to extract the chats for multiple users"