mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Merge pull request #825 from teloxide/image_process_failed_error
Add `ApiError::ImageProcessFailed`
This commit is contained in:
commit
6c6ae76dec
1 changed files with 8 additions and 0 deletions
|
@ -456,6 +456,14 @@ pub enum ApiError {
|
|||
#[error("Bad Request: group is deactivated")]
|
||||
GroupDeactivated,
|
||||
|
||||
/// Occurs when image processing fails on telegram's side.
|
||||
///
|
||||
/// This is likely caused by an incorrectly encoded image, make sure that
|
||||
/// the image is correctly encoded in a format telegram accepts.
|
||||
#[serde(rename = "Bad Request: IMAGE_PROCESS_FAILED")]
|
||||
#[error("Bad Request: IMAGE_PROCESS_FAILED")]
|
||||
ImageProcessFailed,
|
||||
|
||||
/// Occurs when bot tries to set chat photo from file ID
|
||||
///
|
||||
/// May happen in methods:
|
||||
|
|
Loading…
Reference in a new issue