set_expiration_timer
Set or disable a disappearing-messages timer for a direct or group conversation. New messages auto-delete after specified seconds for automatic privacy.
Instructions
Set or disable the disappearing-messages timer for a direct or group conversation. Once set, all new messages auto-delete after expiration_seconds on both sides. Common values: 3600 (1h), 86400 (1d), 604800 (1w), 2592000 (30d). Set expiration_seconds=0 to disable disappearing messages entirely. Provide recipient for a direct conversation or group_id for a group — exactly one is required. The change is delivered to all participants and takes effect on new messages immediately; existing messages already sent are not affected. Use when you want automatic privacy for a sensitive conversation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expiration_seconds | Yes | Timer in seconds (0 to disable). Common: 3600=1h, 86400=1d, 604800=1w | |
| recipient | No | Phone number for a direct conversation | |
| group_id | No | Group ID for a group conversation |