Delete Message • AI Agent SDK

delete_message: Delete a message.

delete_message

Async

Method

</div>

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

Delete a message.

Signature

python
async def delete_message(channel_id: str, message_id: str) -> bool

Parameters

ParamField str

Channel containing the message

ParamField str

ID of message to delete

Returns

ResponseField bool

True if deleted successfully

Source

View on GitHub

praisonaiagents/bots/protocols.py at line 1163