[][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 Telegram bot used to send requests.

DialogueDispatcher

A dispatcher of dialogues.

DialogueDispatcherHandlerCx

A context of a DialogueDispatcher's message handler.

Dispatcher

One dispatcher to rule them all.

DispatcherHandlerCx

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

Message

This object represents a message.

UnboundedReceiver

Receive values from the associated UnboundedSender.

Update

This object represents an incoming update.

Enums

DialogueStage

Continue or terminate a dialogue.

RequestError

An error occurred after making 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.

Functions

exit

A shortcut for Ok(DialogueStage::Exit).

next

A shortcut for Ok(DialogueStage::Next(dialogue)).