How to listen for private messages?

I'm trying to build a bot for Hipchat. 

I understand to listen for messages in a room, I have to register a webhook for the 'room_message' event.

I would also like users to be able to interact with the bot one-on-one through private messages with the bot. If I understand correctly, I have to create a new user and send PM's to other users on this user's behalf.

What I can't figure out is how I would listen for private messages to this bot user. Could you point me in the right direction, please? Thanks!

1 answer

0 votes

Unfortunately, it's not currently possible to listen to 1-1 through the normal API v2 addon interface. This is a feature that we definitely want to add in the future, but don't currently have it on a timeline.

One alternative if you want to create a bot is to use the XMPP interface directly: There are a bunch of frameworks that help support that flow, but in general future development has trended toward expanding the official API vs adding XMPP support. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 14, 2018 in Hipchat Cloud

Hipchat Cloud and Stride End of Life: Just over 90 days away

Earlier this year we made the difficult decision to discontinue our team messaging tools, Stride and Hipchat. The end of life date for Stride and Hipchat Cloud is quickly approaching - February 15, 2...

28,543 views 0 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you