I only found this guide but still not sure on how to go about sending a txt file specifically.
From the site
Sending files using webhooks is only possible using Content-Type: multipart/form-data header. Using this method also means you have to set json body as value of payload_json parameter.
Parameter names should have unique names otherwise they will collide and only first file from ones with identical names will be shown.