Make file_name and file_dir mutually exclusive
This commit is contained in:
parent
6bb004fc83
commit
b9f623921d
@ -2659,6 +2659,10 @@ class Client:
|
|||||||
Raises:
|
Raises:
|
||||||
:class:`pyrogram.Error`
|
: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)):
|
if isinstance(message, (types.Message, types.Photo)):
|
||||||
done = Event()
|
done = Event()
|
||||||
path = [None]
|
path = [None]
|
||||||
|
Loading…
Reference in New Issue
Block a user