Skip to content

Commit

Permalink
Force document when using send_document
Browse files Browse the repository at this point in the history
  • Loading branch information
delivrance committed Jul 26, 2020
1 parent e5fda6f commit b29c5fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyrogram/client/methods/messages/send_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def progress(current, total):
media = types.InputMediaUploadedDocument(
mime_type=self.guess_mime_type(document) or "application/zip",
file=file,
force_file=True,
thumb=thumb,
attributes=[
types.DocumentAttributeFilename(file_name=file_name or os.path.basename(document))
Expand Down

0 comments on commit b29c5fd

Please sign in to comment.