mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-02 13:34:51 +00:00
Force document when using send_document
This commit is contained in:
parent
e5fda6f9a0
commit
b29c5fdc69
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue