There was an error while loading. Please reload this page.
1 parent e5fda6f commit b29c5fdCopy full SHA for b29c5fd
pyrogram/client/methods/messages/send_document.py
@@ -152,6 +152,7 @@ def progress(current, total):
152
media = types.InputMediaUploadedDocument(
153
mime_type=self.guess_mime_type(document) or "application/zip",
154
file=file,
155
+ force_file=True,
156
thumb=thumb,
157
attributes=[
158
types.DocumentAttributeFilename(file_name=file_name or os.path.basename(document))
0 commit comments