How to analyze gmail attachment with GPT and send to Telegram?

I want to create automation: checking Gmail – if there is an XLS attachment with a specific filename, it is saved to Google Drive. Then, one file should be analyzed by ChatGPT, and the analysis result, in a specific format, should be sent to my Telegram bot. How can this be implemented? I can already save the attachment to Google Drive. How do I retrieve that specific file and analyze it in GPT?