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

Is there a way to lookup bot's slack user id without session? #1218

Closed
onikiri2007 opened this issue Sep 13, 2016 · 5 comments
Closed

Is there a way to lookup bot's slack user id without session? #1218

onikiri2007 opened this issue Sep 13, 2016 · 5 comments

Comments

@onikiri2007
Copy link

Hi,
I'm trying to use the Slack's Event api to receive the event from slack and I'd like to send the message when event has been received via ChatConnector however since I don't have a session I won't know the bot's slack user id to create the address object.

Is there a method to retrieve bot's slack user id based on the team id?

@jameslew
Copy link
Contributor

We don't have that particular method, but it should be attached to the recipient field of any incoming message to the Bot. There may be additional data in the ChannelData field you can use.

@craigjensen
Copy link

We don't yet support Slack's new Events api but are looking into adding support in the future. I may not be understanding your question correctly, but it sounds like you are planning on implementing your own Events based integration with Slack. Is there a reason you can't use our current message-based Slack integration? That will provide you with all the context you need to send replies.

@onikiri2007
Copy link
Author

HI,
So I was trying to implement similar scenario like one in here #1181 via Slack event api.
However I can't send the message to the user via bot since I don't have the bot user id.

@dandriscoll
Copy link
Member

Hi @onikiri2007, you should have the bot's Slack ID in the activity.From.Id field. Can you see if this is the ID you're looking for?

@jameslew
Copy link
Contributor

jameslew commented Oct 5, 2016

Given lack of activity, I'm assuming your request has been resolved and am closing the issue. Thanks!

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

4 participants