pub type TelegramHook<T> = Arc<dyn Fn(T) -> BoxFuture<'static, Result<(), AnyError>> + Send + Sync>;Expand description
A venture hook: called inline as part of handling a delivery (or a
confirm request). Its error is the delivery’s 5xx — which is what
makes Telegram retry, and what keeps the dedup key unclaimed.
Aliased Type§
pub struct TelegramHook<T> { /* private fields */ }