Crates.io | groupme_bot |
lib.rs | groupme_bot |
version | 0.1.2 |
source | src |
created_at | 2018-04-15 02:42:57.360146 |
updated_at | 2018-04-20 01:51:14.974028 |
description | Rust library wrapper for Groupme bots API. |
homepage | https://github.com/dominikWin/groupme_bot.git |
repository | https://github.com/dominikWin/groupme_bot.git |
max_upload_size | |
id | 60686 |
size | 18,976 |
Rust library for the Groupme Bots API.
The library allows for Rust programms to create, destroy, and post messages and images to Groupme.
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();