diff --git a/src/main.rs b/src/main.rs index e7a11a9..ae28401 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,12 @@ -fn main() { - println!("Hello, world!"); +use teloxide::prelude::*; + +#[tokio::main] +async fn main() { + let bot = Bot::from_env(); + + teloxide::repl(bot, |bot: Bot, msg: Message| async move { + bot.send_dice(msg.chat.id).await?; + Ok(()) + }) + .await; }