create MsgTooOld bot error variant

This commit is contained in:
Akulij 2025-05-01 14:46:43 +03:00
parent 5ec8e2201c
commit 2b037e0eaa

View File

@ -109,6 +109,7 @@ pub enum BotError {
TeloxideError(#[from] teloxide::RequestError),
// TODO: not a really good to hardcode types, better to extend it later
StorageError(#[from] mongodb_storage::MongodbStorageError<<Json as Serializer<State>>::Error>),
MsgTooOld(String),
}
pub type BotResult<T> = Result<T, BotError>;