mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
parent
e39a9d007a
commit
9b8e21231c
1 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,7 @@ pub trait CommandRepl {
|
||||||
/// A REPL for commands.
|
/// A REPL for commands.
|
||||||
///
|
///
|
||||||
/// See [`CommandRepl`] for more details.
|
/// See [`CommandRepl`] for more details.
|
||||||
|
#[must_use]
|
||||||
fn repl<'a, R, H, Args>(bot: R, handler: H) -> BoxFuture<'a, ()>
|
fn repl<'a, R, H, Args>(bot: R, handler: H) -> BoxFuture<'a, ()>
|
||||||
where
|
where
|
||||||
R: Requester + Clone + Send + Sync + 'static,
|
R: Requester + Clone + Send + Sync + 'static,
|
||||||
|
@ -81,6 +82,7 @@ pub trait CommandRepl {
|
||||||
/// A REPL for commands with a custom [`UpdateListener`].
|
/// A REPL for commands with a custom [`UpdateListener`].
|
||||||
///
|
///
|
||||||
/// See [`CommandRepl`] for more details.
|
/// See [`CommandRepl`] for more details.
|
||||||
|
#[must_use]
|
||||||
fn repl_with_listener<'a, R, H, L, Args>(bot: R, handler: H, listener: L) -> BoxFuture<'a, ()>
|
fn repl_with_listener<'a, R, H, L, Args>(bot: R, handler: H, listener: L) -> BoxFuture<'a, ()>
|
||||||
where
|
where
|
||||||
H: Injectable<DependencyMap, ResponseResult<()>, Args> + Send + Sync + 'static,
|
H: Injectable<DependencyMap, ResponseResult<()>, Args> + Send + Sync + 'static,
|
||||||
|
|
Loading…
Reference in a new issue