php-slack-bot icon indicating copy to clipboard operation
php-slack-bot copied to clipboard

Can the bot send attachments?

Open Chewbacca96 opened this issue 7 years ago • 3 comments

I found article in slack documentation (https://api.slack.com/docs/message-attachments) about attachments, and i have to ask, can your bot do this?

Chewbacca96 avatar Jan 26 '17 22:01 Chewbacca96

No, he can't. This bot only uses the RTM api at the moment https://api.slack.com/rtm

The RTM API only supports posting simple messages formatted using our default message formatting mode. It does not support attachments or other message formatting modes. To post a more complex message as a user clients can call the chat.postMessage Web API method with as_user set to true.

The bot can be extended to use the Web API in order to send attachments. I think it's a must-have feature and I will try to work on it if I find enough time.

jclg avatar Jan 30 '17 20:01 jclg

Any news on this feature?

robi-bobi avatar Mar 26 '19 20:03 robi-bobi

The issue is still open but unfortunately I don't have time to work on this at the moment.

jclg avatar Apr 15 '19 10:04 jclg