nestjs-telegraf/lib/ContextTransformer.ts

6 lines
153 B
TypeScript
Raw Normal View History

2019-02-28 11:29:26 +03:00
import { ContextMessageUpdate } from 'telegraf'
export interface ContextTransformer<T = any> {
transform: (ctx: ContextMessageUpdate) => Promise<T>
}