Edit Message • AI Agent SDK
edit_message: Edit an existing message.
edit_message
Async
Method
</div>
This is a method of the BasePlatformAdapter class in the 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
async def edit_message(chat_id: Any, message_id: str, content: Union[str, Dict[str, Any]]) -> SendResultParameters
ParamField
AnyNo description available.
ParamField
strNo description available.
ParamField
UnionNo description available.
Returns
ResponseField
SendResultThe result of the operation.
Uses
SendResultNotImplementedError
Source
View on GitHubpraisonaiagents/bots/base.py at line 769