create MsgTooOld bot error variant
This commit is contained in:
parent
5ec8e2201c
commit
2b037e0eaa
@ -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>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user