> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Bot Message • Rust AI Agent SDK

> BotMessage: A bot message.

# BotMessage

> Defined in the [**protocols**](../modules/protocols) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

A bot message.

## Fields

| Name          | Type                   | Description     |
| ------------- | ---------------------- | --------------- |
| `id`          | `String`               | Message ID      |
| `sender_id`   | `String`               | Sender ID       |
| `sender_name` | `Option&lt;String&gt;` | Sender name     |
| `content`     | `String`               | Message content |
| `channel_id`  | `Option&lt;String&gt;` | Channel/room ID |
| `timestamp`   | `u64`                  | Timestamp       |
| `metadata`    | `HashMap&lt;String`    | Metadata        |

## Methods

### `new`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn new(sender_id: impl Into<String>, content: impl Into<String>) -> Self
```

Create a new bot message

**Parameters:**

| Name        | Type                      |
| ----------- | ------------------------- |
| `sender_id` | `impl Into&lt;String&gt;` |
| `content`   | `impl Into&lt;String&gt;` |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/protocols/mod.rs#L384">
  `praisonai/src/protocols/mod.rs` at line 384
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Bots" icon="robot" href="/docs/rust/bots" />

  <Card title="Rust AGUI" icon="display" href="/docs/rust/agui" />
</CardGroup>
