Send PDF files

Hi everyone, I built a chatbot, and I want to make it able to send PDF files in the conversation to the human user. Is it possible? and if yes, how canI do it? Thanks in advance.

This works on Telegram:

attachment = {"document": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"}
dispatcher.utter_custom_json(attachment)

Thank you for your reply It prints this error: AttributeError: ‘CollectingDispatcher’ object has no attribute ‘utter_custom_json’ I tried to modify the CollectingDispatcher Class and add utter_custom_json but it didn’t work. Do you have any idea? Thanks in advance

Did you sort out this issue @OmarDhouib95 ?

This does not work :confused: