mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Merge pull request #1022 from teloxide/improve-terminatedbyothergetupdates-docs
improve `ApiError::TerminatedByOtherGetUpdates` docs
This commit is contained in:
commit
bc0a21d212
3 changed files with 12 additions and 8 deletions
|
@ -677,8 +677,12 @@ impl_api_error! {
|
|||
/// [`SendMessage`]: crate::payloads::SendMessage
|
||||
WrongHttpUrl = "Bad Request: wrong HTTP URL",
|
||||
|
||||
/// Occurs when bot tries GetUpdate before the timeout. Make sure that only
|
||||
/// one Updater is running.
|
||||
/// Occurs when multiple [`GetUpdates`] calls happen at the same time.
|
||||
///
|
||||
/// 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:
|
||||
/// 1. [`GetUpdates`]
|
||||
|
|
Loading…
Reference in a new issue