feat(sample): update sample

This commit is contained in:
Morb0
2021-01-06 22:48:10 +03:00
parent daf0d8ffdf
commit 7f7f786373
8 changed files with 51 additions and 32 deletions

View File

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