[][src]Module teloxide::prelude

Commonly used items.

Re-exports

pub use crate::dispatching::DispatcherHandlerRx;
pub use crate::error_handlers::LoggingErrorHandler;
pub use crate::error_handlers::OnError;
pub use crate::requests::Request;
pub use crate::requests::ResponseResult;

Structs

Bot

A requests sender.

DialogueDispatcher

A dispatcher of dialogues.

DialogueWithCx

A context of a DialogueDispatcher's message handler.

Dispatcher

One dispatcher to rule them all.

Message

This object represents a message.

UnboundedReceiver

Receive values from the associated UnboundedSender.

Update

This object represents an incoming update.

UpdateWithCx

A Dispatcher's handler's context of a bot and an update.

Enums

DialogueStage

Continue or terminate a dialogue.

RequestError

An error caused by sending a request to Telegram.

Traits

DispatcherHandlerRxExt

An extension trait to be used with DispatcherHandlerRx.

GetChatId

Something that has a chat ID.

StreamExt

An extension trait for Streams that provides a variety of convenient combinator functions.

Transition

Represents a transition function of a dialogue FSM.

Functions

exit

Exits a dialogue.

next

Returns a new dialogue state.

Type Definitions

TransitionIn

An input passed into a FSM (sub)transition function.

TransitionOut

A type returned from a FSM (sub)transition function.