Type Definition telexide::client::EventHandlerFunc[][src]

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

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.