mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-10-01 04:39:32 +03:00
fix(sample): remove relation path import
This commit is contained in:
@@ -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,
|
||||
);
|
Reference in New Issue
Block a user