GroupMe Bot Mentioning

1,215 views
Skip to first unread message

sam jackson

unread,
Aug 26, 2015, 7:36:05 AM8/26/15
to groupme-a...@googlegroups.com

Hi,

 

I recently made a bot to add to a group that when someone types ‘@leadership’ in the chat, it returns a message that mentions a select group of people in the following way ‘@person1 @person2, etc.’. However the message, when posted does not actually mention the people and they do not receive the notification. The text is just being posted as plain text instead of references to the actual people, is there any way that I can change this for it to work?

 

Thanks in advance,

 

Sam Jackson

Jake Bathman

unread,
Aug 26, 2015, 4:58:52 PM8/26/15
to sam jackson, groupme-a...@googlegroups.com
Hey Sam,

You can totally do this! You need to have the userId values for person1, person2, etc. Then you'll need to have the bot include them as an attachment to the post.

This is a bit tricky, because you've gotta "map" the locations of the strings ("@person1") to the user being mentioned in that string. So I made a gist to show you the basics: https://gist.github.com/jakebathman/0830789c9cd4167cd1da

Hopefully that helps out a bit.

Jake

--
You received this message because you are subscribed to the Google Groups "GroupMe API Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to groupme-api-sup...@googlegroups.com.
To post to this group, send email to groupme-a...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/groupme-api-support/DUB402-EAS9383A3E55BF7AA407299D2B7630%40phx.gbl.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages