Struct groupme_bot::BotBuilder [] [src]

pub struct BotBuilder { /* fields omitted */ }

Builder to create Bots with configuration and add them to Groupme.

Examples

use groupme_bot::{Groupme, Bot};

let groupme: Groupme = Groupme::new(Some("Required API Token"));
let bot: Bot = groupme
    .create_bot("My Bot", "a group id")
    .unwrap()
    .with_avatar_url("some url")
    .with_callback_url("some other url")
    .with_dm_notification(true)
    .create()
    .unwrap();

Methods

impl BotBuilder
[src]

[src]

Sets the avatar_url for a new Bot.

Groupme will only accept image urls from their Image Service.

[src]

Sets the callback_url for a new Bot.

[src]

Sets the dm_notificaion for a new Bot.

[src]

Builds a Bot with the set values and adds it to a group.

Trait Implementations

impl Debug for BotBuilder
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for BotBuilder

impl !Sync for BotBuilder