I am having a real headache with the way of sending a pdf file to a Telegram Bot. Apparently I am following the documentation but never get it sent. I am using the url: https://api.telegram.org/botBOTID/sendDocument?chat_id=CHATID&document=/home/lix/Downloads/2.pdf
It is a pdf file storaged locally, but I think it is just the way I am presenting it. The error getting is: {"ok":false,"error_code":400,"description":"Bad Request: URL host is empty"} Does anybody knows how to send a pdf local file? Many thanks