mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-23 07:09:34 +01:00
Add ApiError::RequestEntityTooLarge
Occurs when bot tries to upload a file which is larger than 50 MB using multipart/form-data.
This commit is contained in:
parent
6274a69a98
commit
932bfa64fe
1 changed files with 12 additions and 0 deletions
|
@ -741,6 +741,18 @@ pub enum ApiError {
|
||||||
#[error("Bad Request: invalid file id")]
|
#[error("Bad Request: invalid file id")]
|
||||||
FileIdInvalid,
|
FileIdInvalid,
|
||||||
|
|
||||||
|
/// Occurs when bot tries to upload a file which is larger than 50 MB using multipart/form-data.
|
||||||
|
///
|
||||||
|
/// May happen in methods:
|
||||||
|
/// 1. [`SendVideo`]
|
||||||
|
/// 2. [`SendDocument`]
|
||||||
|
///
|
||||||
|
/// [`SendVideo`]: crate::payloads::SendVideo
|
||||||
|
/// [`SendDocument`]: crate::payloads::SendDocument
|
||||||
|
#[serde(rename = "Request Entity Too Large")]
|
||||||
|
#[error("Request Entity Too Large")]
|
||||||
|
RequestEntityTooLarge,
|
||||||
|
|
||||||
/// Error which is not known to `teloxide`.
|
/// Error which is not known to `teloxide`.
|
||||||
///
|
///
|
||||||
/// If you've received this error, please [open an issue] with the
|
/// If you've received this error, please [open an issue] with the
|
||||||
|
|
Loading…
Add table
Reference in a new issue