derive Clone on BotCommand

reason: everything passed in teloxide's filter_map asks Clone (or Copy) implementation
This commit is contained in:
Akulij 2025-05-20 01:16:52 +05:00
parent 0e10cdbdf0
commit e0c00d68f9

View File

@ -10,6 +10,7 @@ pub enum CommandError {
ValidationError(String), ValidationError(String),
} }
#[derive(Clone)]
pub struct BotCommand { pub struct BotCommand {
command: String, command: String,
args: Option<String>, args: Option<String>,