diff --git a/src/dispatching/repls/commands_repl.rs b/src/dispatching/repls/commands_repl.rs index fd04964a..c5669e29 100644 --- a/src/dispatching/repls/commands_repl.rs +++ b/src/dispatching/repls/commands_repl.rs @@ -14,7 +14,12 @@ use teloxide_core::requests::Requester; /// /// All errors from an update listener and handler will be logged. /// +/// REPLs are meant only for simple bots and rapid prototyping. If you need to +/// supply dependencies or describe more complex dispatch logic, please use +/// [`Dispatcher`]. +/// /// ## Caution +/// /// **DO NOT** use this function together with [`Dispatcher`] and other REPLs, /// because Telegram disallow multiple requests at the same time from the same /// bot. @@ -49,7 +54,12 @@ where /// /// All errors from an update listener and handler will be logged. /// +/// REPLs are meant only for simple bots and rapid prototyping. If you need to +/// supply dependencies or describe more complex dispatch logic, please use +/// [`Dispatcher`]. +/// /// ## Caution +/// /// **DO NOT** use this function together with [`Dispatcher`] and other REPLs, /// because Telegram disallow multiple requests at the same time from the same /// bot. diff --git a/src/dispatching/repls/repl.rs b/src/dispatching/repls/repl.rs index eec73f1f..509525d4 100644 --- a/src/dispatching/repls/repl.rs +++ b/src/dispatching/repls/repl.rs @@ -11,7 +11,12 @@ use teloxide_core::requests::Requester; /// /// All errors from an update listener and a handler will be logged. /// -/// # Caution +/// REPLs are meant only for simple bots and rapid prototyping. If you need to +/// supply dependencies or describe more complex dispatch logic, please use +/// [`Dispatcher`]. +/// +/// ## Caution +/// /// **DO NOT** use this function together with [`Dispatcher`] and other REPLs, /// because Telegram disallow multiple requests at the same time from the same /// bot. @@ -35,7 +40,12 @@ where /// /// All errors from an update listener and handler will be logged. /// +/// REPLs are meant only for simple bots and rapid prototyping. If you need to +/// supply dependencies or describe more complex dispatch logic, please use +/// [`Dispatcher`]. +/// /// # Caution +/// /// **DO NOT** use this function together with [`Dispatcher`] and other REPLs, /// because Telegram disallow multiple requests at the same time from the same /// bot.