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

Support sending messages as_user: true #4

Closed
dblock opened this issue Jul 18, 2015 · 6 comments
Closed

Support sending messages as_user: true #4

dblock opened this issue Jul 18, 2015 · 6 comments

Comments

@dblock
Copy link
Collaborator

dblock commented Jul 18, 2015

https://github.com/cjwooo/mafiabot seems to be using chat_postMessage because it wants as_user: true.

@zachfeldman
Copy link

Sooooo this commit just messed me up pretty majorly when I tried to change as_user to false and there was no warning that the attr wasn't being passed correctly. Maybe we can allow people to pass in an option for that? I'll be forking and patching for my use case...

@zachfeldman
Copy link

Sorry I didn't mean to sound that upset! Wanted to clarify that this gem has been SUPER HELPFUL and I really appreciate your work @dblock :D. I think we don't say that enough on here.

@zachfeldman
Copy link

Hmm also maybe I'm wrong about the above because this is a pretty old commit and now I can't find as_user anywhere important...

@zachfeldman
Copy link

Ok so if anyone is at all curious, I was trying to set as_user using the rtm methods and not the web client methods. You can't do this. Trying to find a solution for my problem with RTM, which is to set a bot icon.

@dblock
Copy link
Collaborator Author

dblock commented Dec 9, 2016

I don't think you can @zachfeldman, the message in RTM doesn't allow you to specify as_user. But you can use the web client to send anything as_user though under an RTM bot.

@zachfeldman
Copy link

You're right. If you are creating a vendored bot (what I'm doing) you can set a default icon that gets used across teams!

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

No branches or pull requests

2 participants