mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +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
|
||||
|
||||
- `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
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue