Skip to main content

BotMessage

Defined in the protocols module.
AI Agent 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

str
No description available.
Union
No description available.
MessageType
No description available.
Optional[BotUser]
No description available.
Optional[BotChannel]
No description available.
float
No description available.
Optional[str]
No description available.
Optional[str]
No description available.
List
No description available.
Dict[str, Any]
No description available.

Methods

text()

Get message text content.

is_command()

Check if message is a command.

command()

Extract command name if this is a command message.

command_args()

Extract command arguments if this is a command message.
  • from_dict: Create from dictionary.
  • to_dict: Convert to dictionary.

Source

View on GitHub

praisonaiagents/bots/protocols.py at line 481