mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-26 07:48:11 +03:00
19 lines
536 B
TypeScript
19 lines
536 B
TypeScript
import { ContextTransformer } from './'
|
|
import { HearsTriggers } from 'telegraf'
|
|
import { UpdateType, MessageSubTypes } from 'telegraf/typings/telegram-types'
|
|
import { Type } from '@nestjs/common'
|
|
|
|
interface ArgumentTransformation {
|
|
index: number
|
|
transform: Type<ContextTransformer>
|
|
}
|
|
|
|
export interface HandleParameters {
|
|
onStart?: boolean
|
|
on?: UpdateType | UpdateType[] | MessageSubTypes | MessageSubTypes[]
|
|
command?: string
|
|
message?: string | RegExp
|
|
action?: HearsTriggers
|
|
transformations?: ArgumentTransformation[]
|
|
}
|