mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-26 15:58:09 +03:00
6138ae0918
* feat(TelegramActionHandler): add 'action' parameter for handling 'callback_data'
17 lines
387 B
TypeScript
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[]
|
|
}
|