use std::fmt::Debug;
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("Error writing to stdout")]
StdoutWrite(#[source] std::io::Error),
#[error("Can't send via Telegram. Message contents: {msg:?}")]
Telegram {
source: teloxide::RequestError,
msg: Box<dyn Debug + Send + Sync>,
},
}