mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-26 00:17:08 +01:00
improve ApiError::TerminatedByOtherGetUpdates
docs
This commit is contained in:
parent
4c131db181
commit
43b1f8445a
1 changed files with 8 additions and 2 deletions
|
@ -677,13 +677,19 @@ impl_api_error! {
|
||||||
/// [`SendMessage`]: crate::payloads::SendMessage
|
/// [`SendMessage`]: crate::payloads::SendMessage
|
||||||
WrongHttpUrl = "Bad Request: wrong HTTP URL",
|
WrongHttpUrl = "Bad Request: wrong HTTP URL",
|
||||||
|
|
||||||
/// Occurs when bot tries GetUpdate before the timeout. Make sure that only
|
/// Occurs when multiple [`GetUpdates`] calls happen at the same time.
|
||||||
/// one Updater is running.
|
///
|
||||||
|
/// This can happen if
|
||||||
|
/// 1. You are running multiple bot instances
|
||||||
|
/// 2. You are running multiple update consumers (like [`Dispatcher`] or [`repl`])
|
||||||
|
/// 3. You are calling [`GetUpdates`] yourself and the second call is done before the first one finishes
|
||||||
///
|
///
|
||||||
/// May happen in methods:
|
/// May happen in methods:
|
||||||
/// 1. [`GetUpdates`]
|
/// 1. [`GetUpdates`]
|
||||||
///
|
///
|
||||||
/// [`GetUpdates`]: crate::payloads::GetUpdates
|
/// [`GetUpdates`]: crate::payloads::GetUpdates
|
||||||
|
/// [`Dispatcher`]: crate::dispatching::Dispatcher
|
||||||
|
/// [`repl`]: crate::repl
|
||||||
TerminatedByOtherGetUpdates = "Conflict: terminated by other getUpdates request; make sure that only one bot instance \
|
TerminatedByOtherGetUpdates = "Conflict: terminated by other getUpdates request; make sure that only one bot instance \
|
||||||
is running",
|
is running",
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue