Enum teleborg::error::Error
[−]
[src]
pub enum Error {
Io(Error),
HttpError(Error),
SerializeError(Error),
RequestError(Error),
RequestFailed(StatusCode),
JsonNotFound,
JsonError(Error),
TelegramError(String),
}The Errors which may occur when using the Telegram bot API.
Variants
Io(Error)HttpError(Error)SerializeError(Error)RequestError(Error)RequestFailed(StatusCode)Contains the status code of the request
JsonNotFoundIndicates the JSON couldn't be found
JsonError(Error)Anything that can go wrong with the JSON
TelegramError(String)