From 0f7756ac68eb0902eeb22db35d095b5f0d6e46dd Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Tue, 28 Mar 2023 18:17:07 +0200 Subject: [PATCH] Remove dead code from send_file --- telethon/client/uploads.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/telethon/client/uploads.py b/telethon/client/uploads.py index 5147724a..7061a00a 100644 --- a/telethon/client/uploads.py +++ b/telethon/client/uploads.py @@ -375,18 +375,6 @@ class UploadMethods: captions = captions[10:] sent_count += 10 - for doc, cap in zip(file, captions): - result.append(await self.send_file( - entity, doc, allow_cache=allow_cache, - caption=cap, force_document=force_document, - progress_callback=used_callback, reply_to=reply_to, - attributes=attributes, thumb=thumb, voice_note=voice_note, - video_note=video_note, buttons=buttons, silent=silent, - supports_streaming=supports_streaming, schedule=schedule, - clear_draft=clear_draft, background=background, - **kwargs - )) - return result if formatting_entities is not None: