mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-09 00:14:50 +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:
|
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 a new issue