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

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

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.