mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
warning text update
This commit is contained in:
parent
2fb12fbe54
commit
586bfdff77
1 changed files with 3 additions and 1 deletions
|
|
@ -37,7 +37,9 @@ class Downloadable:
|
||||||
:return: destination
|
:return: destination
|
||||||
"""
|
"""
|
||||||
if destination:
|
if destination:
|
||||||
warn_deprecated("destination parameter is deprecated, please use destination_dir.")
|
warn_deprecated(
|
||||||
|
"destination parameter is deprecated, please use destination_dir or destination_file."
|
||||||
|
)
|
||||||
if destination_dir and destination_file:
|
if destination_dir and destination_file:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Use only one of the parameters: destination_dir or destination_file."
|
"Use only one of the parameters: destination_dir or destination_file."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue