group_me v0.1.1 GroupMe.Bots

Bots are programs that listen and respond to messages. You will need to create your own bot and register it before posting messages.

Group Me API

Summary

Functions

create(token, options)

Create a new bot.

Returns a parsed JSON response.

Options:

bot[name] required string
bot[group_id] required string
bot[avatar_url] string
bot[callback_url] string - You can only use the same callback once.
bot[dm_notification] boolean - This makes a bot only respond to direct messages for a specific user.

Token should the a USER token, not a Bot ID.

create!(token, options)
delete(token, bot_id)

Delete/Destroy a bot.

delete!(token, bot_id)
list(token)

List all your bots.

list!(token)
post_message(bot_id, message)

Post a Message from your bot.