I will definitely try to download attachments this way, but I am curious why when I use this method:
GET https://graph.microsoft.com/v1.0/me/messages/{id}/$value
sometimes there is no content (attachment).
Example when it is ok.
--_004_AS8PR08MB909483C571FF651316386ECF9EAB9AS8PR08MB9094eurp_
Content-Type: text/plain; name="eft.txt"
Content-Description: eft.txt
Content-Disposition: attachment; filename="eft.txt"; size=195;
creation-date="Thu, 23 Feb 2023 14:18:19 GMT";
modification-date="Thu, 23 Feb 2023 14:18:23 GMT"
Content-Transfer-Encoding: base64
WEo1MVotN0U2RUMtSUtMUFQtRUM0NVUNCg0KRTAxV1hGNFdOQkRUVDdXUQ==
--_004_AS8PR08MB909483C571FF651316386ECF9EAB9AS8PR08MB9094eurp_--