2 releases

Uses old Rust 2015

0.1.2 Apr 20, 2018
0.1.1 Apr 15, 2018

#220 in #bot

MIT license

16KB
262 lines

groupme_bot

Crates.io Build Status

Rust library for the Groupme Bots API.

The library allows for Rust programms to create, destroy, and post messages and images to Groupme.

Example

To use bots you need to get an API token at dev.groupme.com.

Bots can be created either online or through the library.

use groupme_bot::{Groupme, Bot};

// Posting doesn't require a token
let groupme = Groupme::new(None);

let bot = groupme.bot("Secret bot_id");

bot.post("Hello, world!").unwrap();

lib.rs:

Wrapper for the Groupme Bots HTTP API.

This library interacts with the bots sections of the Groupme v3 API. Information about the API is here, and a bots specific example is here.

Example

use groupme_bot::{Groupme, Bot};

let groupme = Groupme::new(None);
let bot = groupme.bot("Secret bot_id");

bot.post("Hello, world!");

Dependencies

~14–24MB
~412K SLoC