mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-27 16:45:19 +00:00
Force document when using send_document
This commit is contained in:
parent
e5fda6f9a0
commit
b29c5fdc69
@ -152,6 +152,7 @@ class SendDocument(BaseClient):
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user