messages
Classes
MessageModel
Bases: BaseModel
Represents a message in a channel.
Returned by:
- Code Reference routers channels Classes ChannelsClient Functions
- Code Reference models messages Classes MessageUserResponse
Attributes
pinned_at
Timestamp when the message was pinned (epoch time in nanoseconds).
data
Additional data associated with the message.
Dict Fields
files(list, optional): List of file objects associated with the message, each containing file metadata like URLs and types
meta
Metadata associated with the message.
Dict Fields
model_id(str, optional): ID of the model that generated the messagemodel_name(str, optional): Name of the model that generated the messagedone(bool, optional): Flag indicating if model processing is complete
MessageForm
Bases: BaseModel
Form for creating or updating a message.
Used by:
- Code Reference routers channels Classes ChannelsClient Functions
Attributes
temp_id
Temporary ID for the message (used for optimistic UI updates).
data
Additional data associated with the message.
Dict Fields
files(list, optional): List of file objects associated with the message, each containing file metadata like URLs and typescontent(str, optional): Additional message content data used in message and replace eventsembeds(list, optional): List of embedded content objects in the messagestatus(dict, optional): Status information about the message processing state
ReactionForm
Reactions
MessageUserResponse
Bases: MessageModel
Message model with user details included.
Attributes
MessageReplyToResponse
Bases: MessageUserResponse
Message model with user details and reply-to message details.
Subclassed by:
- Code Reference models messages Classes MessageResponse
Attributes
reply_to_message
reply_to_message: Optional[MessageUserResponse] = None
The message this message is replying to.
MessageWithReactionsResponse
Bases: MessageUserResponse
Message model with user details and reactions.
Returned by:
- Code Reference routers channels Classes ChannelsClient Functions get_pinned_messages