derive Clone on Config

This commit is contained in:
Akulij 2025-05-31 10:47:49 +05:00
parent 6dfe9b839d
commit e993a6c941

View File

@ -49,7 +49,7 @@ use teloxide::{
type BotDialogue = Dialogue<State, MongodbStorage<Json>>; type BotDialogue = Dialogue<State, MongodbStorage<Json>>;
#[derive(Envconfig)] #[derive(Envconfig, Clone)]
pub struct Config { pub struct Config {
#[envconfig(from = "BOT_TOKEN")] #[envconfig(from = "BOT_TOKEN")]
pub bot_token: String, pub bot_token: String,