Wait for the next lines (fast)
wait_linesWaits for the next speech, chat, or spoken line since a given sequence number, returning it immediately or after a timeout. Use in a loop to follow a live room with minimal delay.
Instructions
Returns as soon as there is a line with seq greater than since (speech, chat, or a line the bot spoke), or after timeout_ms with none. Use it in a loop to follow a live room with the least delay: pass the returned next as since. Lines addressed to the bot (its name, "bot", or a question) carry to_bot: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | No | Which lines to return: speech (someone in the room), chat (a chat post), spoken (a line this bot said). Omit for all three. | |
| since | No | The next value from the previous call, or 0. | |
| meeting_id | No | The meeting_id of the room (from create_broadcast or join_broadcast). | |
| timeout_ms | No | How long to wait for a new line. Default 20000, at most 30000. |