diff --git a/src/net/telegram_response.rs b/src/net/telegram_response.rs index 34242bb3..306d100a 100644 --- a/src/net/telegram_response.rs +++ b/src/net/telegram_response.rs @@ -29,9 +29,9 @@ pub(crate) enum TelegramResponse { }, } -impl Into> for TelegramResponse { - fn into(self) -> Result { - match self { +impl From> for ResponseResult { + fn from(this: TelegramResponse) -> ResponseResult { + match this { TelegramResponse::Ok { response, .. } => Ok(response), TelegramResponse::Err { error,