Type Alias telexide::client::EventHandlerFunc

source ·
pub type EventHandlerFunc = fn(_: Context, _: Update) -> Pin<Box<dyn Future<Output = ()> + Send>>;
Expand description

A function that handles a new update, it receives a Context and Update and returns a pinned future. Wrap an async function with #[prepare_listener] for easier development.