mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-09 11:43:57 +01:00
Merge pull request #123 from teloxide/needs_administrator_rights_error
Add `NotEnoughRightsToPostMessages` error
This commit is contained in:
commit
22cfedf708
1 changed files with 5 additions and 0 deletions
|
@ -434,6 +434,11 @@ pub enum ApiError {
|
||||||
#[serde(rename = "Bad Request: not enough rights to restrict/unrestrict chat member")]
|
#[serde(rename = "Bad Request: not enough rights to restrict/unrestrict chat member")]
|
||||||
NotEnoughRightsToRestrict,
|
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.
|
/// Occurs when bot tries set webhook to protocol other than HTTPS.
|
||||||
///
|
///
|
||||||
/// May happen in methods:
|
/// May happen in methods:
|
||||||
|
|
Loading…
Reference in a new issue