How to make an attachment file sent via "POST - Send chat message" from Graph API displayable in Teams channel?

Solution 1:

The workaround that is working for this problem is to first copy the attachment in a sharepoint library and then use this copy as the attachment.