nestjs-telegraf/lib/HandleParameters.ts
2019-05-20 07:56:11 +03:00

15 lines
339 B
TypeScript

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