From 586bfdff7713e6148f064ed10801c6aa488afcab Mon Sep 17 00:00:00 2001 From: darksidecat Date: Wed, 1 Sep 2021 12:10:29 +0300 Subject: [PATCH] warning text update --- aiogram/types/mixins.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aiogram/types/mixins.py b/aiogram/types/mixins.py index 56d4ad1d..83c65032 100644 --- a/aiogram/types/mixins.py +++ b/aiogram/types/mixins.py @@ -37,7 +37,9 @@ class Downloadable: :return: 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: raise ValueError( "Use only one of the parameters: destination_dir or destination_file."