From ce8489af1a2f56a8ed0c3e4eae5ebdffc979b365 Mon Sep 17 00:00:00 2001 From: Egor3f Date: Wed, 3 Jun 2020 17:23:13 +0300 Subject: [PATCH] fix --- telecup_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telecup_cli.py b/telecup_cli.py index c8e3f17..a409cb2 100644 --- a/telecup_cli.py +++ b/telecup_cli.py @@ -336,7 +336,7 @@ def download(config: Config, filename): for msg in fileMessages: fileInfo = parse_message(msg.message) if fileInfo and ( - fileInfo['name'].startswith(filename.strip()) or + fileInfo['name'] == filename.strip() or fileInfo['name_hash'].startswith(filename.strip()) ): download_file(config.client, destination, fileInfo, config.dialog)