wait_for_message
Waits for incoming LINE messages in real time and returns any that arrive during the timeout, optionally limited to a specific chat. Call repeatedly to keep listening when no message appears.
Instructions
รอข้อความใหม่จาก LINE แบบ real-time (สูงสุด 50 วินาทีต่อครั้ง) คืนข้อความที่เข้ามาระหว่างรอ ระบุ chatMid เพื่อรอเฉพาะห้อง เรียกซ้ำได้หากยังไม่มีข้อความ
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatMid | No | รอเฉพาะห้องนี้ (ไม่บังคับ) | |
| timeoutSec | No | วินาทีที่รอ (ค่าเริ่มต้น 50 สูงสุด 50) |