I am trying to get my telegram bot to download a pdf document that is on google drive, but I can't get it to work. I made the following code to be able to get it to work but there was no case in this:
url = bot.get_File(link='link of google drive') down = url.download() bot.sendDocument(chat_id=ChatId, document=open(down,'rb'), filename="Lista de precios.pdf")
I don't put the google drive link for privacy reasons, but obviously it would go there. I don't know if it is possible to download a file from drive just like that.