Edit Message • AI Agent SDK

edit_message: Edit an existing message.

edit_message

Async

Method

</div>

This is a method of the BotProtocol class in the protocols module.

Edit an existing message.

Signature

python
async def edit_message(channel_id: str, message_id: str, content: Union[str, Dict[str, Any]]) -> BotMessage

Parameters

ParamField str

Channel containing the message

ParamField str

ID of message to edit

ParamField Union

New message content

Returns

ResponseField BotMessage

The edited message

Source

View on GitHub

praisonaiagents/bots/protocols.py at line 1145