Hi Flow xo teams,
Hope you are doing well!
I faced an issue to send a pdf file i choose image tool but it doesn’t works with me.
Cold u please help me how to send a pdf file in telegram!
Hi Flow xo teams,
Hope you are doing well!
I faced an issue to send a pdf file i choose image tool but it doesn’t works with me.
Cold u please help me how to send a pdf file in telegram!
You will have to send a link to the PDF using Send Message or Send Card, because Send Image will only work with images. If you just send a message and include an http link.
Nathan
You would need to upload a PDF to a location with a public URL like dropbox or Amazon S3 and simply send that URL as part of your message. There is not a way to directly send a PDF.
Nathan
is there a way that we can using Code tools to get the pdf file from my server?
You don’t need to use any special tools - if you have a PDF on your server, and you can provide a public URL to that PDF, you can simply put the URL to the PDF in a Send Message or Send Card task, and the user can click the link and download the PDF off of your server.
Yes Nathan I know but i don’t have publick URL that’s way I am asking if there’s a way to using code
The file is on my server I want that if the user asking for invoice for example the bot send the file
I understand - unfortunately we don’t currently have a way to send private files that aren’t images or videos, the only way we have available at the moment is to send a URL. I don’t think the code action will help here. However, if you are or have access to a programmer, you could upload the PDF file to Amazon AWS and give it a temporary link you could send to your user, but it would require some custom development.