Skip to main content

UpdateStreamExt

Trait UpdateStreamExt 

Source
pub trait UpdateStreamExt {
    // Required method
    fn update_stream(&self) -> UpdateStreamBuilder;
}
Expand description

Adds update_stream to Bot.

Required Methods§

Source

fn update_stream(&self) -> UpdateStreamBuilder

Configures a stream backed by long polling, with a 10-second polling timeout by default.

Do not run another polling consumer for the same bot concurrently.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§