nestjs-telegraf/lib/interfaces/handle-parameters.interface.ts
Aleksandr Bukhalo 6138ae0918
chore: publish 0.7.0 release (#6)
* feat(TelegramActionHandler): add 'action' parameter  for handling 'callback_data'
2020-01-15 17:30:47 +03:00

17 lines
387 B
TypeScript

import { ContextTransformer } from './'
import { HearsTriggers } from 'telegraf'
import { Type } from '@nestjs/common'
interface ArgumentTransformation {
index: number
transform: Type<ContextTransformer>
}
export interface HandleParameters {
onStart?: boolean
command?: string
message?: string | RegExp
action?: HearsTriggers
transformations?: ArgumentTransformation[]
}