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
async def edit_message(channel_id: str, message_id: str, content: Union[str, Dict[str, Any]]) -> BotMessageParameters
ParamField
strChannel containing the message
ParamField
strID of message to edit
ParamField
UnionNew message content
Returns
ResponseField
BotMessageThe edited message
Source
View on GitHubpraisonaiagents/bots/protocols.py at line 1145