Skip to main content

Crate botkit_core

Crate botkit_core 

Source

Re-exports§

pub use action::ChatAction;
pub use action::ChatActionGuard;
pub use action::ChatActionSender;

Modules§

action
types

Structs§

BotBuilder
Builder for constructing bots with handlers
BotHandle
Handle to control a running bot
ButtonId
Button/callback ID extractor
Channel
Channel information extractor
CommandArgs
Command arguments extractor (Telegram-style string args)
CommandName
Command name extractor
Context
Context for handling bot events
FileResponse
File response data
MessageContent
Message content extractor
Response
Unified bot response builder
Typing
Typing indicator extractor
User
User information extractor

Enums§

BotError
Main error type for bot operations
HandlerPattern
OptionValue
Command option value

Traits§

Bot
Unified Bot trait that hides connection mode differences
ContextData
Trait implemented by platform-specific context data
FromContext
Trait for extracting typed data from bot context
Handler
Trait for bot event handlers
IntoHandler
Trait to convert functions into handlers
IntoResponse
Trait for converting types into bot responses

Type Aliases§

BoxedHandler
Boxed handler for storage