mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-20 13:59:00 +01:00
Add WrongFileIdOrUrl
and FailedToGetUrlContent
errors
This commit is contained in:
parent
7437a8c4a8
commit
d8e3c6ce42
2 changed files with 18 additions and 0 deletions
|
@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## unreleased
|
## unreleased
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- `WrongFileIdOrUrl` and `FailedToGetUrlContent` errors ([#188][pr188])
|
||||||
|
|
||||||
|
[pr188]: https://github.com/teloxide/teloxide-core/pull/188
|
||||||
|
|
||||||
## 0.4.3 - 2022-03-08
|
## 0.4.3 - 2022-03-08
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -406,6 +406,18 @@ pub enum ApiError {
|
||||||
#[error("Bad Request: wrong file id")]
|
#[error("Bad Request: wrong file id")]
|
||||||
WrongFileId,
|
WrongFileId,
|
||||||
|
|
||||||
|
/// Occurs when bot tries to send files with wrong file identifier or HTTP
|
||||||
|
/// url
|
||||||
|
#[serde(rename = "Bad Request: wrong file identifier/HTTP URL specified")]
|
||||||
|
#[error("Bad Request: wrong file identifier/HTTP URL specified")]
|
||||||
|
WrongFileIdOrUrl,
|
||||||
|
|
||||||
|
/// Occurs when When sending files with an url to a site that doesn't
|
||||||
|
/// respond.
|
||||||
|
#[serde(rename = "Bad Request: failed to get HTTP URL content")]
|
||||||
|
#[error("Bad Request: failed to get HTTP URL content")]
|
||||||
|
FailedToGetUrlContent,
|
||||||
|
|
||||||
/// Occurs when bot tries to do some with group which was deactivated.
|
/// Occurs when bot tries to do some with group which was deactivated.
|
||||||
#[serde(rename = "Bad Request: group is deactivated")]
|
#[serde(rename = "Bad Request: group is deactivated")]
|
||||||
#[error("Bad Request: group is deactivated")]
|
#[error("Bad Request: group is deactivated")]
|
||||||
|
|
Loading…
Add table
Reference in a new issue