Merge pull request #123 from teloxide/needs_administrator_rights_error

Add `NotEnoughRightsToPostMessages` error
This commit is contained in:
Waffle Maybe 2021-10-10 15:02:25 +03:00 committed by GitHub
commit 22cfedf708
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -434,6 +434,11 @@ pub enum ApiError {
#[serde(rename = "Bad Request: not enough rights to restrict/unrestrict chat member")]
NotEnoughRightsToRestrict,
/// Occurs when bot tries to post a message in a channel without "Post
/// Messages" admin right.
#[serde(rename = "Bad Request: need administrator rights in the channel chat")]
NotEnoughRightsToPostMessages,
/// Occurs when bot tries set webhook to protocol other than HTTPS.
///
/// May happen in methods: