pub type RawEventHandlerFunc = fn(_: Context, _: RawUpdate) -> Pin<Box<dyn Future<Output = ()> + Send>>;
Expand description

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