diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 2f2d1a23..6c8ee1b5 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -2668,7 +2668,7 @@ class Client: """ if file_name is not None and file_dir is not None: - ValueError('file_name and file_dir may not be specified together.') + raise ValueError('file_name and file_dir may not be specified together.') if isinstance(message, (types.Message, types.Photo)): done = Event()