15 lines
390 B
TypeScript
15 lines
390 B
TypeScript
import { buildDefaultReplyEndButtons } from "../runtime/openclaw-telegram-poc.js"
|
|
import type { TelegramInlineButton } from "../types.js"
|
|
|
|
export type TelegramReplyEndPayload = {
|
|
text: string
|
|
buttons: TelegramInlineButton[][]
|
|
}
|
|
|
|
export function buildTelegramReplyEndPayload(text: string): TelegramReplyEndPayload {
|
|
return {
|
|
text,
|
|
buttons: buildDefaultReplyEndButtons(),
|
|
}
|
|
}
|