mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 05:54:51 +00:00
Make file_name and file_dir mutually exclusive
This commit is contained in:
parent
6bb004fc83
commit
b9f623921d
1 changed files with 4 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue