It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
crivers Atlassian Team Mar 21, 2017

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: https://confluence.atlassian.com/hipchatkb/using-bots-in-hipchat-753404057.html. 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
TAGS
Community showcase
Published in Hipchat

Hipchat Cloud and Stride have reached End of Life (updated)

All good things come to an end - thanks to all our customers and partners who have been along the Hipchat and Stride journey with us.  As of Feb 15th 2019, Hipchat Cloud and Stride have reached ...

35,504 views 9 8
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you