mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
Document UpdateHandler
, DefaultHandler
This commit is contained in:
parent
5101786d0b
commit
d25efa9e14
1 changed files with 4 additions and 1 deletions
|
@ -100,8 +100,11 @@ pub struct Dispatcher<R, Err> {
|
|||
|
||||
// TODO: it is allowed to return message as response on telegram request in
|
||||
// webhooks, so we can allow this too. See more there: https://core.telegram.org/bots/api#making-requests-when-getting-updates
|
||||
// FIXME: remove 'static lifetime?
|
||||
|
||||
/// A handler that processes updates from Telegram.
|
||||
pub type UpdateHandler<Err> = dptree::Handler<'static, DependencyMap, Result<(), Err>>;
|
||||
|
||||
/// A handler that processes unhandled updates.
|
||||
pub type DefaultHandler = dptree::Handler<'static, DependencyMap, (), Infallible>;
|
||||
|
||||
impl<R, Err> Dispatcher<R, Err>
|
||||
|
|
Loading…
Reference in a new issue