diff --git a/src/main.rs b/src/main.rs index 65e1f61..8e68344 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,11 @@ use teloxide::prelude::*; +use envconfig::Envconfig; + +#[derive(Envconfig)] +struct Config { + #[envconfig(from = "BOT_TOKEN")] + pub bot_token: String, +} #[tokio::main] async fn main() -> Result<(), Box>{