fix(sample): remove relation path import

This commit is contained in:
Morb0
2021-01-06 17:55:40 +03:00
parent c32f2c72d9
commit 31008b04c9
10 changed files with 13 additions and 14 deletions

View File

@@ -0,0 +1,7 @@
import { createParamDecorator, ExecutionContext } from '@nestjs/common';
import { TelegrafExecutionContext } from 'nestjs-telegraf';
export const From = createParamDecorator(
(_, ctx: ExecutionContext) =>
TelegrafExecutionContext.create(ctx).getContext().from,
);