diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 89b256c5..4862b9e8 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -2659,6 +2659,10 @@ class Client: Raises: :class:`pyrogram.Error` """ + + if file_name is not None and file_dir is not None: + ValueError('file_name and file_dir may not be specified together.') + if isinstance(message, (types.Message, types.Photo)): done = Event() path = [None]