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

# Edit Message • AI Agent SDK

> edit_message: Edit an existing message.

# edit\_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 [**BasePlatformAdapter**](../classes/BasePlatformAdapter) class in the [**base**](../modules/base) module.

Edit an existing message.

Default behaviour when the platform does not support edits: report
`ok=False` with a "not supported" error so the caller can re-send.
Platforms that support edits should override this.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def edit_message(chat_id: Any, message_id: str, content: Union[str, Dict[str, Any]]) -> SendResult
```

## Parameters

<ParamField query="chat_id" type="Any" required={true}>
  No description available.
</ParamField>

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

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

### Returns

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

## Uses

* `SendResult`
* `NotImplementedError`

## Source

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