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

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

Parameters

ParamField Any

No description available.

ParamField str

No description available.

ParamField Union

No description available.

Returns

ResponseField SendResult

The result of the operation.

Uses

  • SendResult
  • NotImplementedError

Source

View on GitHub

praisonaiagents/bots/base.py at line 769