pub trait ChatActionLoopBotExt: Sealed {
    fn send_chat_action_in_loop(
        chat_id: impl ImplicitChatId,
        action: Action
    ) -> BoxFuture<'_, Result<Infallible, MethodCall>>; }
Expand description

An utility trait for Bot with a method to send a chat action in a loop.

Required Methods§

Sends a chat action in an infinite loop, returning only if failed to send the action.

This utility is supposed 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.