Crate telers

source ·

Re-exports§

Modules§

  • This module contains submodules with components for sending requests to the Telegram Bot API, its conguration and the main entry point for the library - the Bot struct.
  • Context is a type that is used to transmit data between processing-units when propagating an event. Context creates at the start of the event propagation by Dispatcher and pass to every processing-unit. Processing-units can add their own data to context and use data from context that was added by others.
  • Dispatcher is the main part of the library, which contains functionality for handling updates and dispatching them to the router. You can create Dispatcher with Dispatcher::new method or using Builder (recommended).
  • This module contains enums used in the library for simple way to use it instead of strings (constants), which not so comfortable and safe, because you can make a typo in string and it will compile without errors.
  • This module contains errors that can be returned by the library.
  • This module contains functionality for extracting data from the event and context to the handler arguments.
  • Filters are main part of the library used to filter incoming updates and allow call handlers by their data (text, chat, user, command, etc.), context (state, db, etc.) and other conditions.
  • This module contains the implementations of the finite state machine.
  • This module contains telegram methods from the Telegram Bot API. Each method has a description and a link to the official documentation.
  • This module contains inner and outer middlewares.
  • Router combines all event observers.
  • This module contains telegram types from the Telegram Bot API. Each type has a description and a link to the official documentation.

Derive Macros§

  • Derive an implementation of FromEventAndContext for the given type.
  • Derive an implementation of FromEventAndContext for the given type.