mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Remove duplicate deprecated warn
This commit is contained in:
parent
d4b3f58b88
commit
64f139a43d
1 changed files with 0 additions and 9 deletions
|
|
@ -661,15 +661,6 @@ class Bot(BaseBot, DataMixin, ContextInstanceMixin):
|
|||
payload.setdefault('parse_mode', self.parse_mode)
|
||||
if self.protect_content is not None:
|
||||
payload.setdefault('protect_content', self.protect_content)
|
||||
deprecated_list = [thumb]
|
||||
for param in deprecated_list:
|
||||
if param is None:
|
||||
warnings.warn(
|
||||
message=f"The parameter `{param}` deprecated, use updated method params instead.",
|
||||
category=DeprecationWarning,
|
||||
stacklevel=2
|
||||
)
|
||||
|
||||
|
||||
files = {}
|
||||
prepare_file(payload, files, 'audio', audio)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue