@botonic/plugin-hubtype-analytics
Version:
Plugin for tracking in the Hubtype backend to see the results in the Hubtype Dashbord
18 lines (15 loc) • 547 B
text/typescript
import { EventAction, EventFallback, EventType, RequestData } from '../types'
import { HtEvent } from './ht-event'
export class HtEventFallback extends HtEvent {
fallback_out: number
fallback_message_id: string
user_input: string
constructor(event: EventFallback, requestData: RequestData) {
super(event, requestData)
this.type = EventType.BotEvent
this.action = EventAction.Fallback
this.user_input = event.userInput
this.fallback_out = event.fallbackOut
this.fallback_message_id = event.fallbackMessageId
}
}