derive Clone on Config
This commit is contained in:
parent
6dfe9b839d
commit
e993a6c941
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user