overbot 0.3.3

Telegram Bot Manager that abstracts away the boring stuff and leave you the fun
use super::serde_json;
use super::toml;
use std::io;
use super::telegram_bot_client;

error_chain! {
    types {
        Error, ErrorKind, ResultExt, Result;
    }

    links {
        Bot(telegram_bot_client::errors::Error, telegram_bot_client::errors::ErrorKind);
    }

    foreign_links {
        Json(serde_json::Error);
        Io(io::Error);
        Toml(toml::de::Error);
    }

    errors {
        Config(file: String, descr: &'static str) {
            description("Configuration error")
            display("Error in conf file {}: {}", file, descr)
        }
        Output(cmd: String, descr: &'static str) {
            description("Invalid output from command")
            display("Invalid output from command {}: {}", cmd, descr)
        }
    }
}