Enum telegram_bot2::Error
source · pub enum Error {
ParseError(Error),
IOError(Error),
RequestError(Error),
TelegramError(TelegramError),
}Expand description
Any error that may occur when sending a request to Telegram’s API
Variants§
ParseError(Error)
Error while parsing the query result. This error should never occur, if it does, please open a issue on the repo
IOError(Error)
Error while reading files to upload
RequestError(Error)
Error while communicating with the Telegram server
TelegramError(TelegramError)
Error returned by the API
Trait Implementations§
source§impl From<TelegramError> for Error
impl From<TelegramError> for Error
source§fn from(e: TelegramError) -> Self
fn from(e: TelegramError) -> Self
Converts to this type from the input type.