API Reference¶
This page provides links to the automatically generated API documentation.
Modules¶
The full API documentation is auto-generated from the source code docstrings.
Core Modules¶
chatom - Main module with all exports
chatom.base - Base models (User, Channel, Message, etc.)
chatom.format - Format system (TextNode, Table, FormattedMessage)
chatom.backend - Backend base class and configuration
chatom.enums - Backend type constants
Backend Modules¶
chatom.discord - Discord-specific models and utilities
chatom.slack - Slack-specific models and utilities
chatom.symphony - Symphony-specific models and utilities
Quick Reference¶
Base Models¶
Class |
Description |
|---|---|
|
Represents a chat user |
|
Represents a chat channel |
|
Represents a thread in a channel |
|
Represents a chat message |
|
Represents a file attachment |
|
Represents a rich embed |
|
Represents an emoji |
|
Represents a message reaction |
|
Represents user presence/status |
|
Represents backend capabilities |
Format System¶
Class |
Description |
|---|---|
|
Enum of output formats |
|
Base class for text formatting |
|
Plain text content |
|
Bold formatted text |
|
Italic formatted text |
|
Inline code |
|
Code block with syntax highlighting |
|
Hyperlink |
|
Block quote |
|
Heading (h1-h6) |
|
Paragraph of text |
|
Data table |
|
Container for formatted content |
|
Fluent API for building messages |
Backend-Specific Models¶
Backend |
User |
Channel |
Presence |
|---|---|---|---|
Discord |
|
|
|
Slack |
|
|
|
Symphony |
|
|
|
Mention Functions¶
Backend |
Functions |
|---|---|
Discord |
|
Slack |
|
Symphony |
|
Backend Methods¶
All backends inherit from BackendBase and provide these core methods:
Method |
Description |
|---|---|
|
Establish connection to the backend |
|
Disconnect from the backend |
|
Fetch a user by ID |
|
Fetch a channel by ID |
|
Fetch message history from a channel |
|
Send a message to a channel |
|
Look up a user by any identifier |
|
Look up a channel by any identifier |
|
Get a user’s presence/online status |
|
Set the current user’s presence status |
Presence Support by Backend¶
Backend |
|
|
|---|---|---|
Discord |
✅ Returns user presence with activity |
✅ Set bot presence/status |
Slack |
✅ Returns active/away status |
✅ Set presence and status text |
Symphony |
✅ Returns Symphony presence category |
✅ Set availability status |
Sync Helper¶
All async methods are available synchronously via the sync property:
backend = DiscordBackend()
backend.sync.connect()
messages = backend.sync.fetch_messages("channel_id", limit=50)
presence = backend.sync.get_presence("user_id")
backend.sync.set_presence("online", "Available")
backend.sync.disconnect()