init dotenv
This commit is contained in:
parent
a0e64e9ac4
commit
0d0225741f
@ -2,6 +2,8 @@ use teloxide::prelude::*;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>>{
|
||||
dotenvy::dotenv()?;
|
||||
|
||||
let bot = Bot::from_env();
|
||||
|
||||
teloxide::repl(bot, |bot: Bot, msg: Message| async move {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user