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

Get Thread ID from New Thread #96

Open
kevinterrobang opened this issue Jan 27, 2017 · 4 comments
Open

Get Thread ID from New Thread #96

kevinterrobang opened this issue Jan 27, 2017 · 4 comments

Comments

@kevinterrobang
Copy link

I am trying to write a bot that creates a new thread and later responds in that same thread. However, I can't seem to find a thread ID, whether I use envelope.newMessage = true nor robot.messageRoom

Is there something I am not seeing? How would I get the thread ID that was created by one of these messages so that I can later send a message to the same thread?

@PseudoCoding
Copy link

Has there been any update on this?

@ntrrobng were you able to figure something out?

@kevinterrobang
Copy link
Author

@PseudoCoding sorry I was never able to find the new thread ID.

For my purposes, a user creates an initial thread that Hubot can match and then continue using. It's not as great as I want but it is sufficient for now due to our workflow. If someone was able to extract a new thread ID, that would still be preferable.

@PseudoCoding
Copy link

@ntrrobng Thanks. I'm trying to get my bot to create a thread from a webhook and then any webhooks coming in with the same ID would show up in the same conversation

@kevinterrobang
Copy link
Author

@PseudoCoding github webhooks to kick a deployment? same. in our workflow, we manually post to the channel first to say we're going to deploy, so I have hubot setup to listen to that message and store the thread in robot.brain, then when the webhook comes in it knows where to continue posting. a little clunky but working for us for now.

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

2 participants