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)