Expand description
A Telegram Bot framework
Modules§
- access
access
Access control - An HTTP client implementation
- dialogue
dialogue
Dialogue support - Update handlers
- ratelimit
ratelimit
Ratelimit support - session
session
Session support - Telegram Bot API types
Structs§
- The main entry point.
- Represents a chain of handlers.
- Allows to run a handler only for a specific command.
- A shared state storage for use in
crate::Handler
trait implementations. - Allows to process an error returned by a handler.
- An error returned by a
Handler
trait implementation. - An input for a
Handler
trait implementations. - Decorates a handler with a predicate, allowing control over whether the handler should run.
- A link to a value of type
T
stored in theContext
.
Enums§
- A specialized result for the
Chain
handler. - An error when converting a
HandlerInput
. - Output of the predicate decorator
- Represents a result of a predicate.
Traits§
- Provides a shortcut for wrapping a
Handler
by aCommandPredicate
. - Provides a shortcut for creating error decorator.
- Allows to process errors returned by handlers.
- Allows to handle a specific
HandlerInput
. - Converts objects into the
HandlerResult
. - Allows to create a specific handler input.
Type Aliases§
- A result returned by a
Handler
trait implementation.