Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can the bot send attachments? #20

Open
Chewbacca96 opened this issue Jan 26, 2017 · 3 comments
Open

Can the bot send attachments? #20

Chewbacca96 opened this issue Jan 26, 2017 · 3 comments

Comments

@Chewbacca96
Copy link

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 Chewbacca96 changed the title Can the bot to send attachments? Can the bot send attachments? Jan 26, 2017
@jclg
Copy link
Owner

jclg commented Jan 30, 2017

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.

@robi-bobi
Copy link

Any news on this feature?

@jclg
Copy link
Owner

jclg commented Apr 15, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants