teloxide 0.8.0

An elegant Telegram bots framework for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
use dptree::{di::DependencyMap, Handler};

use crate::dispatching::DpHandlerDescription;

/// Something that can construct a handler.
#[deprecated(note = "Use the teloxide::handler! API")]
pub trait HandlerFactory {
    type Out;

    fn handler() -> Handler<'static, DependencyMap, Self::Out, DpHandlerDescription>;
}