restart/
restart.rs

1use telebot::Bot;
2use futures::stream::Stream;
3use std::env;
4
5// import all available functions
6use telebot::functions::*;
7
8fn main() {
9    // Create the bot
10    let bot = Bot::new(&env::var("TELEGRAM_BOT_KEY").unwrap()).update_interval(200);
11
12    // Enter the main loop
13    loop {
14        bot.clone().run();
15    }
16}