Skip to content

Commit

Permalink
add new error type
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrat555 committed Mar 9, 2021
1 parent 944a08f commit ce11ee4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bot/deliver_job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use serde_json::value::Map;
use std::time::Duration;
use tokio::time;

static TELEGRAM_ERRORS: [&'static str; 12] = [
static TELEGRAM_ERRORS: [&'static str; 13] = [
"Forbidden: bot was blocked by the user",
"Bad Request: chat not found",
"Forbidden: bot was kicked from the supergroup chat",
Expand All @@ -30,6 +30,7 @@ static TELEGRAM_ERRORS: [&'static str; 12] = [
"Bad Request: have no rights to send a message",
"Bad Request: group chat was upgraded to a supergroup chat, migrate to chat id",
"Bad Request: CHAT_WRITE_FORBIDDEN",
"Bad Request: need administrator rights in the channel chat",
];

static DISCRIPTION_LIMIT: usize = 2500;
Expand Down

0 comments on commit ce11ee4

Please sign in to comment.