Ah, this is a good point @vigneshp826. I think I added it because without the text=text field, the notification says “this content can’t be displayed” or something like that. However, I must have only been testing with attachments that didn’t have text, and you’re right that this looks weird
I think it makes sense to remove the text = attachment.get("text", "Attachment") and text = text lines that I added. Would you be able to create a PR to do so? would be best to merge it into 1.2.x instead of master. Then perhaps re-add the **kwargs that used to be in the api_call so that if there is still text in the message, it will get through.
Is there another work around for this besides changing the source code in slack.py? I am using docker-compose and it becomes a lot more complicated to change the code.