From c9f3c09fddb5e10da5505be78b733a153a87956b Mon Sep 17 00:00:00 2001 From: Alexander Tarasov Date: Tue, 12 Aug 2025 10:42:24 +0300 Subject: [PATCH] update README --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a24cea6..a6d7a64 100644 --- a/README.md +++ b/README.md @@ -214,12 +214,8 @@ async def get_file_information(): # Get file information file_hash = "FILE_HASH_TO_GET_INFO" # Replace with the actual file hash - try: - file = await client.get_file(file_hash) - print( - f"File Hash: {file.hash}, Name: {file.name}, Size: {file.size}, URL: {file.url}, Downloads: {file.downloads}") - except FileExistsError as e: - print(e) + file = await client.get_file(file_hash) + asyncio.run(get_file_information())