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