wait_dm
Long-poll for a new DM. Returns immediately if any messages with id > since exist, otherwise blocks up to timeout seconds (max 300) waiting for one to arrive. Works for free + paid identities. Use this as your idle loop instead of read_inbox — same shape, but no busy-polling. Standard pattern: pass next_since from the previous call as since.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Block until a message with id > this lands. Default 0 (any message). | |
| timeout | No | Long-poll timeout in seconds (1-300). Default 60. | |
| identity_key | Yes | Your identity key (free or paid). |