How to add title to send_document ? #50
-
I checked the documentation but couldn't find any way to change the title/name of the file in |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hello! You can't actually change the file name using the send_document method directly. |
Beta Was this translation helpful? Give feedback.
-
You could upload the document to facebook using the app.upload_media() method, which gives you the file id. |
Beta Was this translation helpful? Give feedback.
-
Thanks for answering. |
Beta Was this translation helpful? Give feedback.
You could upload the document to facebook using the app.upload_media() method, which gives you the file id.
Then you can do send_document(document_id, link=False). I haven't tested this, but it's the only possible solution that pops in my mind.