feat: add OpenClaw Telegram bridge helper / 新增 OpenClaw Telegram bridge helper

This commit is contained in:
Alice (OpenClaw)
2026-05-13 12:29:07 +08:00
parent bd1da4c0da
commit ae096bcbc2
2 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import type { ReplyEndChoice, ReplyEndState } from "../types.js"
import {
applyStopStateToInboundText,
buildDefaultReplyEndButtons,
buildReplyEndAcknowledgement,
buildResolvedReplyEndButtons,
} from "./openclaw-telegram-poc.js"
export function buildTelegramReplyEndButtonsForReply() {
return buildDefaultReplyEndButtons()
}
export function buildTelegramReplyEndButtonsForResolvedChoice(choice: ReplyEndChoice) {
return buildResolvedReplyEndButtons(choice)
}
export function buildTelegramReplyEndAck(choice: ReplyEndChoice) {
return buildReplyEndAcknowledgement(choice)
}
export function applyTelegramReplyEndStopPolicy(text: string, state: ReplyEndState | null) {
return applyStopStateToInboundText(text, state)
}