Add NotFound error

This commit is contained in:
Maybe Waffle 2022-03-21 19:10:12 +04:00
parent 961e5aef9d
commit 923be2221d
2 changed files with 7 additions and 0 deletions

View file

@ -10,10 +10,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
- `WrongFileIdOrUrl` and `FailedToGetUrlContent` errors ([#188][pr188]) - `WrongFileIdOrUrl` and `FailedToGetUrlContent` errors ([#188][pr188])
- `NotFound` error ([#190][pr190])
- `HasPayload::with_payload_mut` function ([#189][pr189]) - `HasPayload::with_payload_mut` function ([#189][pr189])
[pr188]: https://github.com/teloxide/teloxide-core/pull/188 [pr188]: https://github.com/teloxide/teloxide-core/pull/188
[pr189]: https://github.com/teloxide/teloxide-core/pull/189 [pr189]: https://github.com/teloxide/teloxide-core/pull/189
[pr190]: https://github.com/teloxide/teloxide-core/pull/190
## 0.4.3 - 2022-03-08 ## 0.4.3 - 2022-03-08

View file

@ -66,6 +66,11 @@ pub enum ApiError {
#[error("Forbidden: bot was blocked by the user")] #[error("Forbidden: bot was blocked by the user")]
BotBlocked, BotBlocked,
/// Occurs when the bot token is incorrect.
#[serde(rename = "Forbidden: bot was blocked by the user")]
#[error("Forbidden: bot was blocked by the user")]
NotFound,
/// Occurs when bot tries to modify a message without modification content. /// Occurs when bot tries to modify a message without modification content.
/// ///
/// May happen in methods: /// May happen in methods: