mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 10:24:02 +00:00
feat(bot): add guided setup topic binding flow
This commit is contained in:
@@ -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}`)
|
||||
}
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user