Remove duplicate deprecated warn

This commit is contained in:
latan 2023-03-22 15:08:46 +02:00
parent d4b3f58b88
commit 64f139a43d

View file

@ -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)