Skip to main content

BotMessage

Defined in the protocols module.
Represents a message in a messaging platform. Attributes: message_id: Platform-specific message identifier content: Message content (text or structured data) message_type: Type of message sender: User who sent the message channel: Channel where the message was sent timestamp: Message timestamp reply_to: ID of message being replied to thread_id: Thread identifier (for threaded conversations) attachments: List of attachment URLs or data metadata: Additional platform-specific metadata

Properties

message_id
str
No description available.
content
Union
No description available.
message_type
MessageType
No description available.
sender
Optional
No description available.
channel
Optional
No description available.
timestamp
float
No description available.
reply_to
Optional
No description available.
thread_id
Optional
No description available.
attachments
List
No description available.
metadata
Dict
No description available.

Methods

  • from_dict: Create from dictionary.
  • to_dict: Convert to dictionary.