diff --git a/src/main.rs b/src/main.rs index 23db630..65e1f61 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,6 +2,8 @@ use teloxide::prelude::*; #[tokio::main] async fn main() -> Result<(), Box>{ + dotenvy::dotenv()?; + let bot = Bot::from_env(); teloxide::repl(bot, |bot: Bot, msg: Message| async move {