jolicode / slack-php-api

:hash: PHP Slack Client based on the official OpenAPI specification
https://jolicode.github.io/slack-php-api/
MIT License
224 stars 56 forks source link

chatPostMessage and attachments #81

Closed vilain-corentin closed 4 years ago

vilain-corentin commented 4 years ago

Hello,

First of all, congratulations on the code!

I'm trying to pass an attachment to the Slack message using the chatPostMessage() method but I can't get it through.

I have 2 problems,

Thank you in advance and have a nice day.

damienalexandre commented 4 years ago

Hi @vilain-corentin; did you resolve your issue?

For reference we have an attachment example here:

https://github.com/jolicode/slack-php-api/blob/28967f79835df4266da5d18979b0a78986a7d62f/tests/WritingTest.php#L28-L36

Cheers