> ## 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 • 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 [**protocols**](../modules/protocols) module.

Send a message to a channel.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def send_message(channel_id: str, content: Union[str, Dict[str, Any]], reply_to: Optional[str], thread_id: Optional[str]) -> BotMessage
```

## Parameters

<ParamField query="channel_id" type="str" required={true}>
  Target channel ID
</ParamField>

<ParamField query="content" type="Union" required={true}>
  Message content
</ParamField>

<ParamField query="reply_to" type="Optional" required={false}>
  Optional message ID to reply to
</ParamField>

<ParamField query="thread_id" type="Optional" required={false}>
  Optional thread ID for threaded replies
</ParamField>

### Returns

<ResponseField name="Returns" type="BotMessage">
  The sent message
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/bots/protocols.py#L344">
  `praisonaiagents/bots/protocols.py` at line 344
</Card>
