init dotenv

This commit is contained in:
Akulij 2025-03-30 18:12:58 +08:00
parent a0e64e9ac4
commit 0d0225741f

View File

@ -2,6 +2,8 @@ use teloxide::prelude::*;
#[tokio::main] #[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>>{ async fn main() -> Result<(), Box<dyn std::error::Error>>{
dotenvy::dotenv()?;
let bot = Bot::from_env(); let bot = Bot::from_env();
teloxide::repl(bot, |bot: Bot, msg: Message| async move { teloxide::repl(bot, |bot: Bot, msg: Message| async move {