pub struct TelegramActionSender { /* private fields */ }Expand description
Telegram chat action sender
Sends chat actions to Telegram with appropriate action strings.
Implementations§
Trait Implementations§
Source§impl ChatActionSender for TelegramActionSender
impl ChatActionSender for TelegramActionSender
Source§fn send_action(
&self,
action: ChatAction,
) -> impl ChatActionFutureBounds<Output = Result<(), BotError>> + '_
fn send_action( &self, action: ChatAction, ) -> impl ChatActionFutureBounds<Output = Result<(), BotError>> + '_
Send a chat action to the specified channel
Source§fn action_expiry(&self) -> Duration
fn action_expiry(&self) -> Duration
Duration after which the action indicator expires Read more
Source§fn clear_action(&self) -> impl ChatActionFutureBounds
fn clear_action(&self) -> impl ChatActionFutureBounds
Clear the indicator early Read more
Source§impl Clone for TelegramActionSender
impl Clone for TelegramActionSender
Source§fn clone(&self) -> TelegramActionSender
fn clone(&self) -> TelegramActionSender
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TelegramActionSender
impl RefUnwindSafe for TelegramActionSender
impl Send for TelegramActionSender
impl Sync for TelegramActionSender
impl Unpin for TelegramActionSender
impl UnsafeUnpin for TelegramActionSender
impl UnwindSafe for TelegramActionSender
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more