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