telegram_wait_reply
Wait for user responses in Telegram conversations with configurable timeout periods and polling intervals, enabling automated interaction handling and command processing.
Instructions
等待用户回复(阻塞式轮询)
参数:
- max_wait: 最长等待时间(秒),默认604800(7天/1周)
行为:
- 前10分钟:每30秒检查一次
- 10分钟-1小时:每60秒检查一次
- 1小时以上:每120秒检查一次
- 用户可以按 Ctrl+C 中断等待
- 超时返回 timeout: true
返回:
- reply: 用户回复内容
- timeout: 是否超时
- interrupted: 是否被用户中断
Input Schema
Name | Required | Description | Default |
---|---|---|---|
max_wait | No | 最长等待时间(秒),默认604800(7天) |
Input Schema (JSON Schema)
{
"properties": {
"max_wait": {
"default": 604800,
"description": "最长等待时间(秒),默认604800(7天)",
"type": "integer"
}
},
"type": "object"
}