[−][src]Trait tbot::util::ChatActionLoopBotExt
An utility trait for Bot
with a method to send a chat action in a loop.
Required methods
fn send_chat_action_in_loop<'a>(
&self,
chat_id: impl ImplicitChatId<'a>,
action: Action
) -> BoxFuture<'a, Result<Infallible, MethodCall>>
&self,
chat_id: impl ImplicitChatId<'a>,
action: Action
) -> BoxFuture<'a, Result<Infallible, MethodCall>>
Sends a chat action in an infinite loop, returning only if failed to send the action.
This utility is suppoed to be select!
ed with another future.
As soon as the other future completes, this future is dropped
and the chat action is no longer sent.
Implementors
impl ChatActionLoopBotExt for Bot
[src]
fn send_chat_action_in_loop<'a>(
&self,
chat_id: impl ImplicitChatId<'a>,
action: Action
) -> BoxFuture<'a, Result<Infallible, MethodCall>>
[src]
&self,
chat_id: impl ImplicitChatId<'a>,
action: Action
) -> BoxFuture<'a, Result<Infallible, MethodCall>>