[][src]Module telexide::prelude

A default set of exports which can be helpful to use.

note that TelexideError is a re-export of telexide::Error under a different name to remove likely ambiguity with other crate error enums.

Examples

Import all of the exports:

use telexide::prelude::*;

Re-exports

pub use super::create_framework;

Structs

Client

The Client is the main object to manage your interaction with telegram.

ClientBuilder

A builder for the Client object to make customisation easier

Context

The context object is an utility object that gets passed to all event handlers, it provides access to the API client and to any custom data you have set in the data object.

Message

This object represents a message.

Update

This object represents an incoming update

Enums

TelexideError

A common error enum returned by most of the library's functionality

Type Definitions

CommandResult

A type alias for an std Result with the CommandError as the Err and () as the Ok

Attribute Macros

command

A function attribute macro for making commands.

prepare_listener

A function attribute macro for making event listeners easier.