Skip to main content

Module adapter

Module adapter 

Source
Expand description

Platform adapter trait and supporting types.

Platform crates (e.g. robit-qq) implement PlatformAdapter to bridge a chat platform’s connection, message sending, and event receiving into the platform-agnostic ChatbotManager.

Structs§

ChatMessage
A parsed chat message from the platform.
MarkdownFeatures
Supported Markdown features for a platform.
MediaAttachment
A media attachment (image, file, etc.) received from the platform.
PlatformCaps
Capabilities that vary by platform.
SendResult
Result of sending a message.
SenderInfo
Sender information extracted from a platform event.
UploadResult
Result of uploading a file to the platform.

Enums§

ChatType
PlatformEvent
Platform events that ChatbotManager processes.

Traits§

PlatformAdapter
The trait every chat platform must implement.