delete_chat_history
Clear messages from a chat with explicit confirmation. Supports selective removal by message ID and revoking for all participants.
Instructions
清空一个对话的历史记录(不可恢复,必须传 confirm=True)。
Args: chat: 对话。 confirm: 必须显式传 True 才会执行。 revoke_for_everyone: 私聊时同时为对方删除。 max_id: 只清空 ID 小于等于它的消息,0 表示全部。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| max_id | No | ||
| confirm | No | ||
| revoke_for_everyone | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||