mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-24 23:57:38 +01:00
Add NotFound
error
This commit is contained in:
parent
961e5aef9d
commit
923be2221d
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue