telers 1.0.0-beta.7

An asynchronous framework for Telegram Bot API written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Event observers, handlers and propagation control.
//!
//! - [`telegram`] contains handlers and observers for Telegram events (messages, callback
//!   queries, etc.); handler functions return [`telegram::HandlerResult`]
//! - [`simple`] contains handlers and observers for simple events like startup and shutdown
//! - [`EventReturn`] controls how an event propagates further; the [`finish_event`],
//!   [`skip_event`] and [`cancel_event`] shortcuts wrap it in `Ok(...)`
//!
//! See the [`router` module](crate::router) for how observers fit into event routing.

#![allow(clippy::module_name_repetitions)]

pub mod bases;
pub mod service;
pub mod simple;
pub mod telegram;

pub use bases::{cancel_event, finish_event, skip_event, EventReturn};