> ## 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.

# Send Message • Rust AI Agent SDK

> send_message: Send a message to a channel.

# send\_message

<div className="flex items-center gap-2">
  <Badge color="blue">Async</Badge>
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**BotProtocol**](../classes/BotProtocol) class in the [**bots**](../modules/bots) module.

Send a message to a channel.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def send_message(
        &self,
        channel_id: &str,
        content: serde_json::Value,
        reply_to: Option<String>,
        thread_id: Option<String>,
    ) -> Result<BotMessage>
```

## Parameters

<ParamField query="channel_id" type="&str" required={true}>
  No description available.
</ParamField>

<ParamField query="content" type="serde_json::Value" required={true}>
  No description available.
</ParamField>

<ParamField query="reply_to" type="Option<String>" required={true}>
  No description available.
</ParamField>

<ParamField query="thread_id" type="Option<String>" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Result<BotMessage>">
  The result of the operation.
</ResponseField>
