how to create a bot to send a message to all users of a groupme chat

1,985 views
Skip to first unread message

Ted

unread,
May 10, 2016, 11:31:58 AM5/10/16
to GroupMe API Support
I've looked at the examples for the bot and they all seem to be one-way examples, where you are pushing a message over the users.  I'd like to create a bot where I can do a /all or something similar and send a message to everyone in the chat.  Could someone point me in the right  direction?

Ultimately, I'd like it where I am able to get information from the groupme chat - like list of users, or list of mods.  Right now, the examples are only showing me how to push examples.

Martin Řezník

unread,
May 11, 2016, 5:24:41 AM5/11/16
to GroupMe API Support
Hi Ted,
check documentation - for posting message to group by a bot, use bots_post API (https://dev.groupme.com/docs/v3#bots_post). It will send message to the group, so all group members will see it.
If you still need list members of group, take a look into groups_show API response (https://dev.groupme.com/docs/v3#groups_show).

Martin

Dne úterý 10. května 2016 17:31:58 UTC+2 Ted napsal(a):

Ted

unread,
May 14, 2016, 5:43:42 PM5/14/16
to GroupMe API Support
Martin, is it possible to send a message and @ everyone in the group.  Not necessarily post a message.  So I'd like to do something like !bot everyone some message and the bot would do @person1 @person2 @person3 "some message"

Ryan Williams

unread,
Jun 30, 2016, 9:38:44 AM6/30/16
to GroupMe API Support
It looks like the @ documentation is available but undocumented: https://groups.google.com/forum/#!topic/groupme-api-support/mNyIZB_S1jc

You can use the published api to get a list of group members and @ them as you need.
Reply all
Reply to author
Forward
0 new messages