telebot 0.3.1

A wrapper around the telegram bot api, powered by futures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use telebot::Bot;
use futures::stream::Stream;
use std::env;

// import all available functions
use telebot::functions::*;

fn main() {
    // Create the bot
    let bot = Bot::new(&env::var("TELEGRAM_BOT_KEY").unwrap()).update_interval(200);

    // Enter the main loop
    loop {
        bot.clone().run();
    }
}