Callback Url? Avatar URL? I need help. Please

522 views
Skip to first unread message

Blake Moody

unread,
Sep 30, 2022, 3:13:37 PM9/30/22
to GroupMe API Support
I am novice at programming but my work team uses group me so i want to make a bot to track numbers.
I started with the bot form that is supposed to be easy but there are no instructions about what the callback URL or avatar URL is.

I just need a hopefully simple bot where if someone posts a number, it will add it to their total and then post all of the team with their totals next to them. and a reset function to reset the numbers each week.

Ie

Member A: 3789
@tracker

Member B: 2000
@tracker

Member C: 1000
@tracker

Tracker:
Total: 6789
Member A 3789
Member B 2000
Member C 1000

Daniel Royer

unread,
Sep 30, 2022, 7:07:19 PM9/30/22
to GroupMe API Support

Hey there!

I'm no expert, but I can try to help you out as best as I can!

First off, to answer the immediate questions:

The Avatar URL is just the URL of an image you want to use as your bot's profile pic. To get it, just Google whatever image you want to use, right click on an image, and hit "copy image address". Then, paste the result into the Avatar URL page.

The callback URL is a URL which GroupMe will send your messages to. So, any time you send a message, GroupMe will send a POST request to that URL.

Now, I know that might not seem super helpful; I first learned about web development using GroupMe bots, and I had a NIGHTMARE trying to learn everything on my own. I just had to get a really good example bot, and work backwards from there, taking it apart, figuring out all the parts, and so on. Unfortunately, the official example I REALLY like is fairly out-of-date now (it heavily recommends using Heroku, and they just dropped their free tier); however, one really talented GroupMe developer I know wrote this example bot. It should be SUPER simple; you'll just need to install Node.JS (which you should be able to find guides for pretty easily), then use it to run that program. You'll also need to, like it says at the top, install and use a tool called Ngrok. That's just a little utility which will take care of all the port forwarding stuff for you, and give you a URL, which you can use as your Callback URL in that form.

I know from experience that this is going to be pretty hard, but once you get it working, it's the most satisfying thing ever. I think you'll really like it!

If you have any more specific questions, feel free to let me know. Like I said, I'm not an expert, but I honestly think I might be the only person who still checks this group semi-regularly.
Reply all
Reply to author
Forward
0 new messages