Add BotKickedFromSupergroup error

Fixes teloxide/teloxide#372
This commit is contained in:
handlerug 2021-04-27 23:48:27 +07:00
parent b3dec316e5
commit 8a7909e7c7
No known key found for this signature in database
GPG key ID: 38009F0605051491

View file

@ -487,6 +487,16 @@ pub enum ApiError {
#[serde(rename = "Unauthorized: bot was kicked from a chat")]
BotKicked,
/// Occurs when bot tries to do something in a supergroup the bot was
/// kicked from.
///
/// May happen in methods:
/// 1. [`SendMessage`]
///
/// [`SendMessage`]: crate::payloads::SendMessage
#[serde(rename = "Forbidden: bot was kicked from the supergroup chat")]
BotKickedFromSupergroup,
/// Occurs when bot tries to send message to deactivated user.
///
/// May happen in methods: