Add BotKickedFromChannel variant to ApiError

This commit is contained in:
Johannes Dertmann 2024-08-29 00:17:37 +02:00
parent a9c5d7a77a
commit 3977b79b90
2 changed files with 11 additions and 0 deletions

View file

@ -42,6 +42,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add `BusinessMessagesDeleted` struct - Add `BusinessMessagesDeleted` struct
- Add `BusinessConnection`, `BusinessMessage`, `EditedBusinessMessage` and `DeletedBusinessMessages` variants to `UpdateKind` enum - Add `BusinessConnection`, `BusinessMessage`, `EditedBusinessMessage` and `DeletedBusinessMessages` variants to `UpdateKind` enum
- `ApiError::BotKickedFromChannel`
### Changed ### Changed
- `MaybeAnonymousUser` type introduced, which replaced `PollAnswer::voter: Voter` and `MessageReactionUpdated::{user, actor_chat}` in `MessageReactionUpdated`([#1134][pr1134]) - `MaybeAnonymousUser` type introduced, which replaced `PollAnswer::voter: Voter` and `MessageReactionUpdated::{user, actor_chat}` in `MessageReactionUpdated`([#1134][pr1134])

View file

@ -644,6 +644,15 @@ impl_api_error! {
/// [`SendMessage`]: crate::payloads::SendMessage /// [`SendMessage`]: crate::payloads::SendMessage
BotKickedFromSupergroup = "Forbidden: bot was kicked from the supergroup chat", BotKickedFromSupergroup = "Forbidden: bot was kicked from the supergroup chat",
/// Occurs when bot tries to do something in a channel the bot was
/// kicked from.
///
/// May happen in methods:
/// 1. [`SendMessage`]
///
/// [`SendMessage`]: crate::payloads::SendMessage
BotKickedFromChannel = "Forbidden: bot was kicked from the channel chat",
/// Occurs when bot tries to send a message to a deactivated user (i.e. a /// Occurs when bot tries to send a message to a deactivated user (i.e. a
/// user that was banned by telegram). /// user that was banned by telegram).
/// ///