mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
delete unknown errors
This commit is contained in:
parent
eada8c3184
commit
333ff8aa6b
1 changed files with 0 additions and 47 deletions
|
@ -94,9 +94,6 @@ enum ApiErrorKind {
|
||||||
#[serde(rename = "Bad Request: Too much messages to send as an album")]
|
#[serde(rename = "Bad Request: Too much messages to send as an album")]
|
||||||
ToMuchMessages,
|
ToMuchMessages,
|
||||||
|
|
||||||
#[serde(rename = "Bad Request: poll can't be stopped")]
|
|
||||||
PollCantBeStopped, // TODO: docs
|
|
||||||
|
|
||||||
/// Occurs when bot tries to stop poll that has already been stopped
|
/// Occurs when bot tries to stop poll that has already been stopped
|
||||||
#[serde(rename = "Bad Request: poll has already been closed")]
|
#[serde(rename = "Bad Request: poll has already been closed")]
|
||||||
PollHasAlreadyClosed,
|
PollHasAlreadyClosed,
|
||||||
|
@ -149,21 +146,10 @@ enum ApiErrorKind {
|
||||||
#[serde(rename = "Bad Request: query is too old and response timeout expired or query id is invalid")]
|
#[serde(rename = "Bad Request: query is too old and response timeout expired or query id is invalid")]
|
||||||
InvalidQueryID,
|
InvalidQueryID,
|
||||||
|
|
||||||
#[serde(rename = "Bad Request: PEER_ID_INVALID")]
|
|
||||||
InvalidPeerID, // TODO: docs
|
|
||||||
|
|
||||||
#[serde(rename = "Bad Request: Failed to get HTTP URL content")]
|
|
||||||
InvalidHTTPUrlContent, // TODO: docs
|
|
||||||
|
|
||||||
/// Occurs when bot tries to send InlineKeyboardMarkup with invalid button url
|
/// Occurs when bot tries to send InlineKeyboardMarkup with invalid button url
|
||||||
#[serde(rename = "Bad Request: BUTTON_URL_INVALID")]
|
#[serde(rename = "Bad Request: BUTTON_URL_INVALID")]
|
||||||
ButtonURLInvalid,
|
ButtonURLInvalid,
|
||||||
|
|
||||||
#[serde(rename = "Bad Request: URL host is empty")]
|
|
||||||
URLHostIsEmpty, // TODO: docs
|
|
||||||
|
|
||||||
#[serde(rename = "Bad Request: START_PARAM_INVALID")]
|
|
||||||
StartParamInvalid, // TODO: docs
|
|
||||||
|
|
||||||
/// Occurs when bot tries to send button with data size more than 64 bytes
|
/// Occurs when bot tries to send button with data size more than 64 bytes
|
||||||
#[serde(rename = "Bad Request: BUTTON_DATA_INVALID")]
|
#[serde(rename = "Bad Request: BUTTON_DATA_INVALID")]
|
||||||
|
@ -217,24 +203,6 @@ enum ApiErrorKind {
|
||||||
#[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,
|
||||||
|
|
||||||
#[serde(rename = "Bad Request: PHOTO_INVALID_DIMENSIONS")]
|
|
||||||
PhotoDimensions, // TODO: docs
|
|
||||||
|
|
||||||
#[serde(rename = "Bad Request: supergroup members are unavailable")]
|
|
||||||
UnavailableMembers, // TODO: docs
|
|
||||||
|
|
||||||
#[serde(rename = "Bad Request: type of file mismatch")]
|
|
||||||
TypeOfFileMismatch, // TODO: docs
|
|
||||||
|
|
||||||
#[serde(rename = "Bad Request: wrong remote file id specified")]
|
|
||||||
WrongRemoteFileIdSpecified, // TODO: docs
|
|
||||||
|
|
||||||
#[serde(rename = "Bad Request: PAYMENT_PROVIDER_INVALID")]
|
|
||||||
PaymentProviderInvalid, // TODO: docs
|
|
||||||
|
|
||||||
#[serde(rename = "Bad Request: currency_total_amount_invalid")]
|
|
||||||
CurrencyTotalAmountInvalid, // TODO: docs
|
|
||||||
|
|
||||||
/// Occurs when bot tries set webhook to protocol other than HTTPS
|
/// Occurs when bot tries set webhook to protocol other than HTTPS
|
||||||
#[serde(rename = "Bad Request: bad webhook: HTTPS url must be provided for webhook")]
|
#[serde(rename = "Bad Request: bad webhook: HTTPS url must be provided for webhook")]
|
||||||
WebhookRequireHTTPS,
|
WebhookRequireHTTPS,
|
||||||
|
@ -247,29 +215,14 @@ enum ApiErrorKind {
|
||||||
#[serde(rename = "Bad Request: bad webhook: Failed to resolve host: Name or service not known")]
|
#[serde(rename = "Bad Request: bad webhook: Failed to resolve host: Name or service not known")]
|
||||||
UnknownHost,
|
UnknownHost,
|
||||||
|
|
||||||
#[serde(rename = "Bad Request: getaddrinfo: Temporary failure in name resolution")]
|
|
||||||
BadWebhookAddrInfo, // TODO: docs
|
|
||||||
|
|
||||||
#[serde(rename = "Bad Request: failed to resolve host: no address associated with hostname")]
|
|
||||||
BadWebhookNoAddressAssociatedWithHostname, // TODO: docs
|
|
||||||
|
|
||||||
/// Occurs when bot tries to set webhook to invalid URL
|
/// Occurs when bot tries to set webhook to invalid URL
|
||||||
#[serde(rename = "Bad Request: can't parse URL")]
|
#[serde(rename = "Bad Request: can't parse URL")]
|
||||||
CantParseUrl,
|
CantParseUrl,
|
||||||
|
|
||||||
#[serde(rename = "Bad Request: unsupported URL protocol")]
|
|
||||||
UnsupportedUrlProtocol, // TODO: docs
|
|
||||||
|
|
||||||
/// Occurs when bot tries to send message with unfinished entities
|
/// Occurs when bot tries to send message with unfinished entities
|
||||||
#[serde(rename = "Bad Request: can't parse entities")]
|
#[serde(rename = "Bad Request: can't parse entities")]
|
||||||
CantParseEntities,
|
CantParseEntities,
|
||||||
|
|
||||||
#[serde(rename = "Bad Request: result_id_duplicate")]
|
|
||||||
ResultIdDuplicate, // TODO: docs
|
|
||||||
|
|
||||||
#[serde(rename = "Bad Request: bot_domain_invalid")]
|
|
||||||
BotDomainInvalid, // TODO: docs
|
|
||||||
|
|
||||||
/// Occurs when bot tries to use getUpdates while webhook is active
|
/// Occurs when bot tries to use getUpdates while webhook is active
|
||||||
#[serde(rename = "can't use getUpdates method while webhook is active")]
|
#[serde(rename = "can't use getUpdates method while webhook is active")]
|
||||||
CantGetUpdates,
|
CantGetUpdates,
|
||||||
|
|
Loading…
Reference in a new issue