Module teloxide::prelude[][src]

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::respond;
pub use teloxide_core::prelude::*;

Structs

AutoSend

Send requests automatically.

CallbackQuery

This object represents an incoming callback query from a callback button in an inline keyboard.

ChatMemberUpdated
ChosenInlineResult

Represents a result of an inline query that was chosen by the user and sent to their chat partner.

DialogueDispatcher

A dispatcher of dialogues.

DialogueWithCx

A context of a DialogueDispatcher’s message handler.

Dispatcher

One dispatcher to rule them all.

InlineQuery

This object represents an incoming inline query.

Message

This object represents a message.

Poll

This object contains information about a poll.

PollAnswer
PreCheckoutQuery

This object contains information about an incoming pre-checkout query.

ShippingQuery

This object contains information about an incoming shipping query.

UnboundedReceiver

Receive values from the associated UnboundedSender.

UpdateWithCx

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

Enums

DialogueStage

Continue or terminate a dialogue.

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.

UpState

Constructs a structure from another structure and a field.

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.

Attribute Macros

teloxidemacros

The docs is below.

Derive Macros

Transition

The docs is below.