Skip to content

Commit b29c5fd

Browse files
committed
Force document when using send_document
1 parent e5fda6f commit b29c5fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyrogram/client/methods/messages/send_document.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def progress(current, total):
152152
media = types.InputMediaUploadedDocument(
153153
mime_type=self.guess_mime_type(document) or "application/zip",
154154
file=file,
155+
force_file=True,
155156
thumb=thumb,
156157
attributes=[
157158
types.DocumentAttributeFilename(file_name=file_name or os.path.basename(document))

0 commit comments

Comments
 (0)