[−][src]Enum teloxide::ApiErrorKind
A kind of an API error returned from Telegram.
Variants
Occurs when the bot tries to send message to user who blocked the bot.
Occurs when bot tries to modify a message without modification content.
May happen in methods:
Occurs when bot tries to forward or delete a message which was deleted.
May happen in methods:
Occurs when bot tries to forward a message which does not exists.
May happen in methods:
Occurs when bot tries to delete a message which does not exists.
May happen in methods:
Occurs when bot tries to delete a someone else's message in group where it does not have enough rights.
May happen in methods:
Occurs when bot tries to edit a message which does not exists.
May happen in methods:
Occurs when bot tries to reply to a message which does not exists.
May happen in methods:
Occurs when bot tries to
Occurs when bot tries to send a message with text size greater then 4096 symbols.
May happen in methods:
Occurs when bot tries to send media group with more than 10 items.
May happen in methods:
Occurs when bot tries to send poll with empty option (without text).
May happen in methods:
Occurs when bot tries to send poll with empty question (without text).
May happen in methods:
Occurs when bot tries to send poll with total size of options more than 100 symbols.
May happen in methods:
Occurs when bot tries to send poll with question size more than 255 symbols.
May happen in methods:
Occurs when bot tries to send a message to chat in which it is not a member.
May happen in methods:
Occurs when bot tries to send method with unknown user_id.
May happen in methods:
Occurs when bot tries to send SetChatDescription
with same text as
in the current description.
May happen in methods:
Occurs when bot tries to answer to query after timeout expire.
May happen in methods:
Occurs when bot tries to send InlineKeyboardMarkup with invalid button url.
May happen in methods:
Occurs when bot tries to send button with data size more than 64 bytes.
May happen in methods:
Occurs when bot tries to do some with group which was deactivated.
Occurs when bot tries to add sticker to stickerset by invalid name.
May happen in methods:
Occurs when bot tries to pin a message without rights to pin in this chat.
May happen in methods:
Occurs when bot tries to use method in group which is allowed only in a supergroup or channel.
Occurs when bot tries to restrict chat member without rights to restrict in this chat.
May happen in methods:
Occurs when bot tries to set webhook to port other than 80, 88, 443 or 8443.
May happen in methods:
Occurs when bot tries GetUpdate before the timeout. Make sure that only one Updater is running.
May happen in methods:
Trait Implementations
impl Clone for ApiErrorKind
[src]
fn clone(&self) -> ApiErrorKind
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ApiErrorKind
[src]
impl Debug for ApiErrorKind
[src]
impl<'de> Deserialize<'de> for ApiErrorKind
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for ApiErrorKind
[src]
impl Hash for ApiErrorKind
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ApiErrorKind> for ApiErrorKind
[src]
fn eq(&self, other: &ApiErrorKind) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ApiErrorKind
[src]
impl StructuralPartialEq for ApiErrorKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for ApiErrorKind
impl Send for ApiErrorKind
impl Sync for ApiErrorKind
impl Unpin for ApiErrorKind
impl UnwindSafe for ApiErrorKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,