feat(bot): add guided setup topic binding flow

This commit is contained in:
2026-03-11 05:20:53 +04:00
parent 60a5cd332e
commit 1b8c6e87f6
8 changed files with 1296 additions and 40 deletions

View File

@@ -17,6 +17,10 @@ function parsePendingActionType(raw: string): TelegramPendingActionType {
return raw
}
if (raw === 'setup_topic_binding') {
return raw
}
throw new Error(`Unexpected telegram pending action type: ${raw}`)
}

View File

@@ -2,7 +2,8 @@ import type { Instant } from '@household/domain'
export const TELEGRAM_PENDING_ACTION_TYPES = [
'anonymous_feedback',
'assistant_payment_confirmation'
'assistant_payment_confirmation',
'setup_topic_binding'
] as const
export type TelegramPendingActionType = (typeof TELEGRAM_PENDING_ACTION_TYPES)[number]