mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Merge pull request #831 from teloxide/not_found_into_unathorized
Fix deserialization of invalid token error
This commit is contained in:
commit
38575de126
1 changed files with 3 additions and 2 deletions
|
@ -100,8 +100,9 @@ pub enum ApiError {
|
||||||
BotBlocked,
|
BotBlocked,
|
||||||
|
|
||||||
/// Occurs when the bot token is incorrect.
|
/// Occurs when the bot token is incorrect.
|
||||||
#[serde(rename = "Not Found")]
|
// FIXME: rename this to something akin "InvalidToken"
|
||||||
#[error("Not Found")]
|
#[serde(rename = "Unauthorized")]
|
||||||
|
#[error("Unauthorized")]
|
||||||
NotFound,
|
NotFound,
|
||||||
|
|
||||||
/// Occurs when bot tries to modify a message without modification content.
|
/// Occurs when bot tries to modify a message without modification content.
|
||||||
|
|
Loading…
Reference in a new issue