diff --git a/src/main.rs b/src/main.rs index 717b5a0..f156c20 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,7 +12,7 @@ async fn main() -> Result<(), Box>{ dotenvy::dotenv()?; let config = Config::init_from_env()?; - let bot = Bot::from_env(); + let bot = Bot::new(config.bot_token); teloxide::repl(bot, |bot: Bot, msg: Message| async move { bot.send_dice(msg.chat.id).await?;