Merge pull request #190 from teloxide/not_found_error

Add `NotFound` error
This commit is contained in:
Waffle Maybe 2022-03-21 19:15:29 +04:00 committed by GitHub
commit 36a54a86e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
- `WrongFileIdOrUrl` and `FailedToGetUrlContent` errors ([#188][pr188])
- `NotFound` error ([#190][pr190])
- `HasPayload::with_payload_mut` function ([#189][pr189])
[pr188]: https://github.com/teloxide/teloxide-core/pull/188
[pr189]: https://github.com/teloxide/teloxide-core/pull/189
[pr190]: https://github.com/teloxide/teloxide-core/pull/190
## 0.4.3 - 2022-03-08

View file

@ -66,6 +66,11 @@ pub enum ApiError {
#[error("Forbidden: bot was blocked by the user")]
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.
///
/// May happen in methods: